Wiki source code of WOCompile

Last modified by Gavin Eadie on 2012/08/07 04:29

Hide last authors
Andrew Lindesay 3.1 1 = WOCompile Task Manual =
Andrew Lindesay 9.1 2
Johann Werner 12.1 3 This has been transcribed by [[Andrew Lindesay>>url:http://www.lindesay.co.nz||shape="rect"]] from the old WOProject site.
Andrew Lindesay 9.1 4
5 == Description ==
6
Johann Werner 12.1 7 {{code language="none"}}WOCompile{{/code}} is an Ant task to build WebObjects Java source code. It is a WO-friendly extension of [[Javac Ant task>>url:http://ant.apache.org/manual/Tasks/javac.html||shape="rect"]].
Andrew Lindesay 9.1 8
9 === Parameters ===
10
Johann Werner 12.1 11 There are no special parameters. The documentation for the [[Javac>>url:http://ant.apache.org/manual/Tasks/javac.html||shape="rect"]] applies.
Andrew Lindesay 9.1 12
13 === Nested Elements ===
14
Gavin Eadie 14.1 15 The nested frameworks is a [[FrameworkSet>>doc:WOL.Home.WOProject-Ant.WOCompile.WOProject-FrameworkSet.WebHome]] structure that specifies the names of the WebObjects Frameworks needed to compile the source code. The jar files from these frameworks will be added to the WOCompile CLASSPATH.
Andrew Lindesay 9.1 16
17 === Examples ===
18
19 {{noformat}}
20
21 <taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile"/>
22
23 <wocompile srcdir="Java" destdir="classes"
24 debug="on"
25 optimize="off"
26 deprecation="on">
27
28 <frameworks dir="${build.root}">
29 <include name="JavaWOExtension.framework"/>
30 <include name="ER*.framework"/>
31 <include name="PRLogic.framework"/>
32 <exclude name="ERNeutralLook.framework"/>
33 </frameworks>
34
35 <frameworks dir="${wo.localroot}">
36 <include name="Mysql*.framework"/>
37 </frameworks>
38
39 <classpath>
40 <fileset dir="Libraries" includes="**/*.jar" />
41 </classpath>
42
43 </wocompile>
44
45 {{/noformat}}