Using WOLips With Multiple Versions of WebObjects

Version 68.1 by David Avendasora on 2009/06/27 07:51
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

The following are instructions on how to setup Eclipse / WOLips so you can work with mulitple versions of WebObjects. This tutorial will demonstrate setting up your environment simply for WebObjects 5.3.3 and 5.4.3 but there's no reason you can't have different setups based on customer or project instead. 

Create New Directory Structure

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245674441767.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245677004032.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245678323686.png?version=10
Open Terminal.app and run one of the following commands:

sudo java jar /Developer/WebObjects/Versions/WOInstaller.jar 5.3.3 /Developer/WebObjects/Versions/WebObjects533
sudo java 
jar /Developer/WebObjects/Versions/WOInstaller.jar 5.4.3 /Developer/WebObjects/Versions/WebObjects543

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

Installed Versions

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679408792.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679819648.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680007266.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245682066002.png?version=10
The following properties will need to be updated to point to your new WebObjects installation directory:

wo.system.root
wo.local.root
wo.system.frameworks
wo.local.frameworks
wo.bootstrapjar
wo.extensions
wo.apps.root

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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680796194.png?version=10
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

http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245681896724.png?version=10
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.

OPTIONAL - Building your project from the Command Line Using Ant

Unknown macro: color. Click on this message for details.

Unknown macro: color. Click on this message for details.

OPTIONAL - Building your project using Hudson

Success

Shameless Plug

Come to [WOWODC-East|http://www.wocommunity.org/wowodc09/east/index.html] for hands-on labs demonstrating how to integrate multiple WebObjects installations with Hudson.