Last modified by Pascal Robert on 2013/12/18 02:55

From version 16.1
edited by Steve Peery
on 2012/10/23 23:30
Change comment: There is no comment for this version
To version 18.1
edited by D Tim Cummings
on 2013/12/18 02:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.speery
1 +XWiki.timcu
Content
... ... @@ -2,6 +2,8 @@
2 2  If you use Hudson/Jenkins to build your WebObjects Frameworks and Applications, then you do not need to build or install either the Project Wonder frameworks or even your own Frameworks on your development machine, just having yours and the individual Wonder source code projects (ERJars, ERExtensions, AJAX, etc) open in your eclipse workspace is sufficient.
3 3  {{/tip}}
4 4  
5 +
6 +
5 5  {{toc maxLevel="3"/}}
6 6  
7 7  = Before You Build =
... ... @@ -74,7 +74,6 @@
74 74  If Ant can't find the WebObjects frameworks, you will get compiler errors like this:
75 75  
76 76  {{noformat}}
77 -
78 78  [wocompile] /MyProjects/MyFramework/Sources/com/mycompany/myapp/myclass:10:
79 79   package com.webobjects.appserver does not exist
80 80  [wocompile] import com.webobjects.appserver.WOContext;
... ... @@ -95,13 +95,12 @@
95 95  
96 96  Right-Click on your project in Eclipse and select **WOLips Ant Tools > Install**
97 97   [[image:attach:WOLipsAntInstall.png]]
98 -This will build and install the framework in the location defined in the WOLips preferences, overwriting any previously installed version of the framework.
99 +This will build and install the framework in the location defined in the WOLips preferences, overwriting any previously installed version of the framework.
99 99  
100 100  {{note title="BUILD FAILED"}}
101 101  If Ant can't write to the WebObjects frameworks directory, you will get an error like this:
102 102  
103 103  {{noformat}}
104 -
105 105  Directory /Library/WebObjects/Versions/WebObjects543/Library/Frameworks/YourFramework.framework
106 106  creation was not successful for an unknown reason.
107 107  
... ... @@ -126,36 +126,33 @@
126 126  * (((
127 127  ===== Standard WebObjects Framework =====
128 128  
129 -You can build a standard WebObjects Framework project by calling Ant and passing it the Project directory, and the name of the build target contained in the build.xml file at your project's root.
129 +You can build a standard WebObjects Framework project by calling Ant and passing it the Project directory, and the name of the build target contained in the build.xml file at your project's root.
130 130  
131 131  {{code 0="none"}}
132 132  cd /my/project/
133 133  ant build
134 -{{/code}} By default, the built framework will be put in a
135 135  
136 -{{code language="none"}}
137 -dist
138 138  {{/code}}
139 139  
140 - directory in your project's root.
137 +By default, the built framework will be put in a {{code language="none"}}dist{{/code}} directory in your project's root.
141 141  )))
142 142  
143 143  * (((
144 144  ===== Project Wonder Frameworks =====
145 145  
146 -This assumes that you have already downloaded the Wonder source code. Make a note of the location of the Wonder directory.
147 - If you are building Project Wonder's frameworks you will use these commands instead:
143 +First download the Wonder source code (see [[doc:WEB.Getting the Wonder Source Code]]). Make a note of the location of the Wonder directory.
148 148  
145 +The Wonder build script will use properties defined in ~~/Library/Application Support/WOLips/wolips.properties. This is a good place to set {{code language="none"}}wo.system.frameworks{{/code}} property.
146 +
147 +To build Project Wonder's frameworks use these commands.
148 +
149 149  {{code 0="none"}}
150 150  cd /path/to/Wonder
151 151  ant frameworks
152 -{{/code}} By default, all the Wonder frameworks will be built to (
153 153  
154 -{{code language="none"}}
155 -~/Roots
156 156  {{/code}}
157 157  
158 -) (in your home directory).
155 +By default, all the Wonder frameworks will be built to ({{code language="none"}}~/Roots{{/code}}) (in your home directory). To build elsewhere, set the {{code language="none"}}wo.external.root{{/code}} property.
159 159  )))
160 160  
161 161  = Customizing the Build =
... ... @@ -169,7 +169,7 @@
169 169  ===== Install the frameworks =====
170 170  
171 171  {{code 0="none"}}
172 -sudo ant frameworks.install
169 +sudo ant -Duser.home=$HOME frameworks.install
173 173  {{/code}}
174 174  
175 175  This copies the built frameworks from {{code language="none"}}~/Roots{{/code}} to the runtime Frameworks directory:
... ... @@ -180,7 +180,7 @@
180 180  You can combine the build and install steps by simply executing this Ant command:
181 181  
182 182  {{code 0="none"}}
183 -sudo ant frameworks frameworks.install
180 +sudo ant -Duser.home=$HOME frameworks frameworks.install
184 184  {{/code}}
185 185  
186 186  === Upgrading ===