Child pages
  • Using WOLips With Multiple Versions of WebObjects

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create New Directory Structure

Image RemovedImage Added
The first thing we need to do is to create a new directory structure to allow for multiple versions of WebObjects to be installed in. This new directory structure basically creates a new root level that WOLips will look in for all frameworks used by a given project or workspace. This directory structure can be anything you wish. For demonstration purposes, I'm going to create it under the Developer directory.

Create: /Developer/WebObjects/Versions/

Download WOInstaller.jar

Image RemovedImage Added
We now need to download the WOInstaller.jar file from http://webobjects.mdimension.com/wolips/ and save it into the Versions directory we just created.

Use WOInstaller.jar to download WebObjects

Image RemovedImage Added
Open Terminal.app and run one of the following commands:

...

Depending upon which version of WO you would like to download.

Installed Versions

Image RemovedImage Added
When the script is done downloading you're directory should look something like this. At this point you could rename the directory to something like MyCustomer or MyProject. For this demonstration we'll just leave it named as is.

Open Eclipse / WOLips

Image RemovedImage Added
You need to launch Eclipse and WOLips at least once so that it will create the default wolips.properties file in ~/Library/Application Support/WOLips/. If you've already been using WOlips, you can skip this step.

Copy the default wolips.properties file

Image RemovedImage Added
Select the wolips.properties file and make a copy of it. Then rename the copy to be wolips.yourversion.properties. In reality, you can rename it however you'd like, for example: wolips.properties.533, 533.wolips.properties, but I find that putting the version number in the middle will keep all the different versions together, and will not mess with the extension mapping.

Modify your new wolips.properties file to point to your newly downloaded version of WebObjects

Image RemovedImage Added
The following properties will need to be updated to point to your new WebObjects installation directory:

...

Set the Eclipse Workspace to use the newly Installed Version of WebObjects

Image RemovedImage Added
To tell the Eclipse/WOLips incremental builder where to find the version of WebObjects you want to use, you need to give it the name of the modified wolips.properties file. You do this by going Under the Eclipse menu, selecting Preferences, then selecting the "WOLips" tab at the right, expand it and finally selecting "Build". Enter in the file name of the wolips.properties file that you just modified.

OPTIONAL - Setup Eclipse's Ant Builder to use the newly Installed Version of WebObjects

Image RemovedImage Added
Currently, the Eclipse Ant builder is not controlled by the "WOLips -> Build" setting in Eclipse's Preferences. You need to explicitly tell it to use your modified wolips.properties file. In your project, open the build.properties file in your project and add the fully-qualified path to your customized wolips.properties file.

...