-
Notifications
You must be signed in to change notification settings - Fork 166
/
BUILD.txt
117 lines (77 loc) · 3.72 KB
/
BUILD.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Building Instructions
=========================
You can build Project Wonder with Ant, Maven and Eclipse.
For information on getting started with Project Wonder, go to:
http://wiki.objectstyle.org/confluence/display/WONDER
Building with Ant:
=========================
Ant should be found in /usr/share/ant/bin/ant
0. Prerequisites:
ant 1.7: execute 'ant -version' to confirm that ant is properly installed
and that it is at version 1.7 or later.
1. Open a terminal and cd into the Wonder root directory.
2. A servlet.jar file needs to be available for some parts of Wonder. On Mac OS X, the
servlet.jar file should be located under the /Developer/Java/J2EE directory. The
servlet.jar file can be placed in the /Library/WebObjects/Extensions directory,
or its equivalent on a Windows system.
3. A wobuild.properties file should be placed in, on Mac OS X, the ~/Library directory.
You can also symlink ~/Library/wobuild.properties to your existing
~/Library/Application Support/WOLips/wolips.properties
On Windows, this should go into a Library folder in the directory pointed to
by the 'user.home' Java system property. Usually, this may be at
C:\Documents and Settings\<user name>\Library.
An example of this file is:
==== START wobuild.properties ====
wo.woroot=/
wo.wosystemroot=/System
wo.wolocalroot=/
==== END wobuild.properties ====
These may, or may not, be necessary for some functionality:
==== START wobuild.properties, perhaps ====
wo.dir.root=/
wo.dir.user.home.library.frameworks=/User/yourname/Library/Frameworks
wo.dir.local=/
wo.dir.library=/System/Library
wo.dir.user.home.library=/User/yourname/Library
wo.dir.local.library=/Library
wo.dir.library.frameworks=/System/Library/Frameworks
wo.dir.local.library.frameworks=/Library/Frameworks
wo.dir.system=/System
==== END wobuild.properties, perhaps ====
4. Invoke ant -projecthelp, but normally you would do for WO:
ant clean frameworks; sudo ant -Duser.home=$HOME frameworks.install
ant applications; sudo ant -Duser.home=$HOME applications.install
ant examples; sudo ant -Duser.home=$HOME examples.install
If you have write privileges in /Library/Frameworks, /Library/WebObjects/JavaApplications, and
/Library/WebServer/Documents/WebObjects/Frameworks, you may do without the "sudo".
Building with Maven:
=========================
Steps 1 and 2 are required only once or when you clean your local Maven repository (rm -Rf ~/.m2/repository).
1. Download and Install Maven (http://maven.apache.org)
2. Import the WebObjects frameworks as jars into the local repository:
mvn wobootstrap:install
See http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start for the settings.xml
needed to make this work.
3. Open a terminal and cd into the Wonder root directory.
4. Build Wonder:
mvn clean install
NOTE: Make sure you have your settings.xml properly configured.
See the step 2 of Maven Quick Start Tutorial for more information:
http://wiki.objectstyle.org/confluence/display/WOL/Quick+Start
Deploying Releases with Maven:
==============================
It's naturally highly beneficial to build your own products against a fixed version / release of Wonder
rather than a snapshot. The following script can automate these steps:
- svn revert
- svn up
- substituting the pom's version with the svn version (e.g., 5.0.0-SNAPSHOT becomes 5.0.0.1234),
- mvn clean [package | install | deploy ] with relevant properties / profile
- clean
- svn revert
See:
ant -f Build/build/maven.release.xml help
Building with Eclipse:
=========================
1. Install Eclipse http://www.eclipse.org
2. Install WOLips
3. Open the projects you need, choose "WOLips>Install..." in the context menu