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

From version 23.1
edited by David Avendasora
on 2011/04/29 14:44
Change comment: There is no comment for this version
To version 22.1
edited by David Avendasora
on 2011/07/07 10:37
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Building and Installing a WO Framework with Ant
1 +Building and Installing a Framework with Ant
Content
... ... @@ -4,15 +4,31 @@
4 4  
5 5  {{toc maxLevel="3"}}{{/toc}}
6 6  
7 -= Building =
7 += Before You Build =
8 8  
9 -{{note title="Requires WebObjects"}}
9 +When building a Framework project, Ant needs to be able to find WebObjects. WebObjects itself is a set of Frameworks just like the one you are building. They can be installed anywhere using [[these instructions>>WO:Installing WebObjects 5.4 on Snow Leopard]].
10 10  
11 -These build instructions require the WebObjects frameworks to already be installed in the normal location:
12 -* Mac OS X: {{/System/Library/Framworks/}}
13 -* Linux: {{/Library/Frameworks}}
11 +Where Ant will look for WebObjects is specified by the ##wo.system.frameworks## build property. This property can be set in a number of locations, or even passed as a command-line property to Ant.
14 14  
15 -Otherwise you will get compiler errors like this:
13 +Where Ant looks for this property is different for each method of building a Framework:
14 +
15 +1. h6. WOJenkins Jobs
16 +11. Completely managed for you by WOJenkins
17 +11. Manually overridden as defined in Manual Jenkins Jobs below.
18 +1. h6. Manual Jenkins Jobs
19 +11. Properties specified in the //Targets// line of an Invoke Ant build task using **##-D<property>=<value>##**
20 +11. Properties specified in the //Properties// line of an Invoke Ant build task using (the equivalent of **##-propertyfile <name>##**)
21 +1. h6. WOLips
22 +11. Properties specified for the Eclipse Workspace under Eclipse -> Preferences -> WOLips - > **System Frameworks**
23 +11. The ##build.properties## file in the same directory as the build.xml file as specified by **##<property file="build.properties" />##** task in the build.xml file.
24 +1. h6. Command Line
25 +11. Properties specified in the Ant command: **##-D<property>=<value>##**
26 +11. A properties file specified in the Ant command: **##-propertyfile <name>##**
27 +11. The ##build.properties## file in the same directory as the build.xml file as specified by **##<property file="build.properties" />##** task in the build.xml file.
28 +
29 +{{note title="Can"}}
30 +
31 +If Ant can't find the WebObjects frameworks, you will get compiler errors like this:
16 16  {noformat}
17 17  [wocompile] /MyProjects/MyFramework/Sources/com/mycompany/myapp/myclass:10:
18 18   package com.webobjects.appserver does not exist
... ... @@ -21,6 +21,8 @@
21 21  
22 22  {{/note}}
23 23  
40 += Building =
41 +
24 24  === Command Line / Terminal ===
25 25  
26 26  * h5. Standard WebObjects Framework