Changes for page Using WOLips With Multiple Versions of WebObjects
Last modified by D Tim Cummings on 2022/07/27 02:24
From 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
To version 71.1
edited by ted_archibald
on 2015/02/20 00:15
on 2015/02/20 00:15
Change comment:
Changed mdimension and fixed broken images
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. avendasora1 +XWiki.ted_archibald - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 3 3 ==== Create New Directory Structure ==== 4 4 5 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245674441767.png?version=10]]5 +[[image:attach:media_1245674441767.png]] 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,18 +10,17 @@ 10 10 11 11 ==== Download WOInstaller.jar ==== 12 12 13 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245677004032.png?version=10]]13 +[[image:attach:media_1245677004032.png]] 14 14 15 -We now need to download the {{code language="none"}}WOInstaller.jar{{/code}} file from [[http:~~/~~/w ebobjects.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.15 +We now need to download the {{code language="none"}}WOInstaller.jar{{/code}} file from [[http:~~/~~/wocommunity.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. 16 16 17 17 ==== Use WOInstaller.jar to download WebObjects ==== 18 18 19 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245678323686.png?version=10]]19 +[[image:attach:media_1245678323686.png]] 20 20 21 21 Open Terminal.app and run one of the following commands: 22 22 23 23 {{noformat}} 24 - 25 25 java -jar /Developer/WebObjects/Versions/WOInstaller.jar 5.3.3 /Developer/WebObjects/Versions/WebObjects533 26 26 java -jar /Developer/WebObjects/Versions/WOInstaller.jar 5.4.3 /Developer/WebObjects/Versions/WebObjects543 27 27 ... ... @@ -31,13 +31,13 @@ 31 31 32 32 ==== Installed Versions ==== 33 33 34 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679408792.png?version=10]]33 +[[image:attach:media_1245679408792.png]] 35 35 36 36 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. 37 37 38 38 ==== Open Eclipse / WOLips ==== 39 39 40 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245679819648.png?version=10]]39 +[[image:attach:media_1245679819648.png]] 41 41 42 42 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. 43 43 ... ... @@ -47,7 +47,7 @@ 47 47 48 48 ==== Make a copy of the default {{code language="none"}}wolips.properties{{/code}} file ==== 49 49 50 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680007266.png?version=10]]49 +[[image:attach:media_1245680007266.png]] 51 51 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. 52 52 53 53 ==== Modify your new {{code language="none"}}wolips.533.properties{{/code}} file to point to your newly downloaded version of WebObjects ==== ... ... @@ -55,7 +55,6 @@ 55 55 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): 56 56 57 57 {{noformat}} 58 - 59 59 wo.network.root=/Network 60 60 wo.system.root=/Developer/WebObjects/Versions/WebObjects533/System 61 61 wo.local.root=/Developer/WebObjects/Versions/WebObjects533 ... ... @@ -88,7 +88,7 @@ 88 88 89 89 ===== Option 1 - Configure the Eclipse workspace to reference your new {{code language="none"}}wolips.properties{{/code}} file ===== 90 90 91 -[[image: url:http://wiki.objectstyle.org/confluence/download/attachments/5275708/media_1245680796194.png?version=10]]89 +[[image:attach:media_1245680796194.png]] 92 92 93 93 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. 94 94 ... ... @@ -118,7 +118,6 @@ 118 118 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: 119 119 120 120 {{noformat}} 121 - 122 122 wolips.properties=/Users/bubba/Library/Application Support/WOLips/wolips.533.properties 123 123 124 124 {{/noformat}} ... ... @@ -142,7 +142,6 @@ 142 142 You can do this either via the {{code language="none"}}-lib{{/code}} parameter to the {{code language="none"}}ant{{/code}} command, e.g. 143 143 144 144 {{noformat}} 145 - 146 146 ant -lib /path/to/woproject.jar 147 147 148 148 {{/noformat}} ... ... @@ -150,7 +150,6 @@ 150 150 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: 151 151 152 152 {{noformat}} 153 - 154 154 mkdir -p ~/.ant/lib 155 155 cp -p /Applications/eclipse-3.4.2/plugins/org.objectstyle.wolips.woproject.ant_3.4.5830/lib/woproject.jar ~/.ant/lib 156 156