Changes for page Using WOLips With Multiple Versions of WebObjects
Last modified by D Tim Cummings on 2022/07/27 02:24
From version 72.1
edited by ted_archibald
on 2015/02/20 00:15
on 2015/02/20 00:15
Change comment:
Migrated to Confluence 5.3
To version 70.1
edited by David Avendasora
on 2011/06/13 01:30
on 2011/06/13 01:30
Change comment:
Migrated to Confluence 4.0
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ted_archibald1 +XWiki.avendasora - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 3 3 ==== Create New Directory Structure ==== 4 4 5 -[[image:attach :media_1245674441767.png]]5 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245674441767.png?version=10]] 6 6 7 7 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 {{code language="none"}}/Developer{{/code}} directory. 8 8 ... ... @@ -10,17 +10,18 @@ 10 10 11 11 ==== Download WOInstaller.jar ==== 12 12 13 -[[image:attach :media_1245677004032.png]]13 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245677004032.png?version=10]] 14 14 15 -We now need to download the {{code language="none"}}WOInstaller.jar{{/code}} file from [[http:~~/~~/woc ommunity.org/documents/tools/WOInstaller.jar>>url:http://wocommunity.org/documents/tools/WOInstaller.jar||shape="rect"]]{{code language="none"}}{{/code}} and save it into the {{code language="none"}}Versions/{{/code}} directory we just created.15 +We now need to download the {{code language="none"}}WOInstaller.jar{{/code}} file from [[http:~~/~~/webobjects.mdimension.com/wolips/>>url:http://webobjects.mdimension.com/wolips/||shape="rect"]]{{code language="none"}}{{/code}} and save it into the {{code language="none"}}Versions/{{/code}} directory we just created. 16 16 17 17 ==== Use WOInstaller.jar to download WebObjects ==== 18 18 19 -[[image:attach :media_1245678323686.png]]19 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245678323686.png?version=10]] 20 20 21 21 Open Terminal.app and run one of the following commands: 22 22 23 23 {{noformat}} 24 + 24 24 java -jar /Developer/WebObjects/Versions/WOInstaller.jar 5.3.3 /Developer/WebObjects/Versions/WebObjects533 25 25 java -jar /Developer/WebObjects/Versions/WOInstaller.jar 5.4.3 /Developer/WebObjects/Versions/WebObjects543 26 26 ... ... @@ -30,13 +30,13 @@ 30 30 31 31 ==== Installed Versions ==== 32 32 33 -[[image:attach :media_1245679408792.png]]34 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679408792.png?version=10]] 34 34 35 35 When the script has finished downloading, your 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. 36 36 37 37 ==== Open Eclipse / WOLips ==== 38 38 39 -[[image:attach :media_1245679819648.png]]40 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679819648.png?version=10]] 40 40 41 41 You need to launch Eclipse and WOLips at least once so that it will create the default {{code language="none"}}wolips.properties{{/code}} file in {{code language="none"}}~/Library/Application Support/WOLips/{{/code}}. If you've already been using WOlips, you can skip this step. 42 42 ... ... @@ -46,7 +46,7 @@ 46 46 47 47 ==== Make a copy of the default {{code language="none"}}wolips.properties{{/code}} file ==== 48 48 49 -[[image:attach :media_1245680007266.png]]50 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680007266.png?version=10]] 50 50 Select the {{code language="none"}}wolips.properties{{/code}} file and make a copy of it. Then rename the copy to be {{code language="none"}}wolips.yourversion.properties{{/code}}. In reality, you can rename it however you'd like (for example: {{code language="none"}}wolips.properties.533{{/code}} or {{code language="none"}}533.wolips.properties{{/code}}), but I find that putting the version number in the middle (e.g. {{code language="none"}}wolips.533.properties{{/code}}) will keep all the different versions together, and will not mess with the extension mapping. 51 51 52 52 ==== Modify your new {{code language="none"}}wolips.533.properties{{/code}} file to point to your newly downloaded version of WebObjects ==== ... ... @@ -54,6 +54,7 @@ 54 54 As an example, if you downloaded WebObjects 5.3.3 into {{code language="none"}}/Developer/WebObjects/Versions/WebObjects533{{/code}}, then modify your new {{code language="none"}}wolips.533.properties{{/code}} file as follows (substituting your username for {{code language="none"}}bubba{{/code}}, of course): 55 55 56 56 {{noformat}} 58 + 57 57 wo.network.root=/Network 58 58 wo.system.root=/Developer/WebObjects/Versions/WebObjects533/System 59 59 wo.local.root=/Developer/WebObjects/Versions/WebObjects533 ... ... @@ -86,7 +86,7 @@ 86 86 87 87 ===== Option 1 - Configure the Eclipse workspace to reference your new {{code language="none"}}wolips.properties{{/code}} file ===== 88 88 89 -[[image:attach :media_1245680796194.png]]91 +[[image:url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680796194.png?version=10]] 90 90 91 91 With this option, we're telling the Eclipse/WOLips internal incremental builder to reference a specific {{code language="none"}}wolips.properties{{/code}} file for the entire workspace (rather than using the default, which is {{code language="none"}}$HOME/Library/Application Support/WOLips/wolips.properties{{/code}}). And by doing this, we're implicitly telling Eclipse which installation of WebObjects we want it to use. 92 92 ... ... @@ -116,6 +116,7 @@ 116 116 Currently, the Eclipse Ant builder is not controlled by the "WOLips -> Build" setting in Eclipse's Preferences. In order to build with Ant, you first need to tell Ant where to find your WebObjects installation and other resources. Your project's default Ant buildfile, {{code language="none"}}build.xml{{/code}} (which is created by WOLips when you create a new WebObjects application project), reads and uses the properties found in your {{code language="none"}}$HOME/Library/Application Support/WOLips/wolips.properties{{/code}} file. But you can specify a different {{code language="none"}}wolips.properties{{/code}} file by adding a line like the following to your project's {{code language="none"}}build.properties{{/code}} file: 117 117 118 118 {{noformat}} 121 + 119 119 wolips.properties=/Users/bubba/Library/Application Support/WOLips/wolips.533.properties 120 120 121 121 {{/noformat}} ... ... @@ -139,6 +139,7 @@ 139 139 You can do this either via the {{code language="none"}}-lib{{/code}} parameter to the {{code language="none"}}ant{{/code}} command, e.g. 140 140 141 141 {{noformat}} 145 + 142 142 ant -lib /path/to/woproject.jar 143 143 144 144 {{/noformat}} ... ... @@ -146,6 +146,7 @@ 146 146 or by putting a copy of {{code language="none"}}woproject.jar{{/code}} someplace where Ant will find it. A convenient location for it is your {{code language="none"}}$HOME/.ant/lib{{/code}} folder: 147 147 148 148 {{noformat}} 153 + 149 149 mkdir -p ~/.ant/lib 150 150 cp -p /Applications/eclipse-3.4.2/plugins/org.objectstyle.wolips.woproject.ant_3.4.5830/lib/woproject.jar ~/.ant/lib 151 151