Wiki source code of WOCompile
Last modified by Gavin Eadie on 2012/08/07 04:29
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = WOCompile Task Manual = | ||
| 2 | |||
| 3 | This has been transcribed by [[Andrew Lindesay>>url:http://www.lindesay.co.nz||shape="rect"]] from the old WOProject site. | ||
| 4 | |||
| 5 | == Description == | ||
| 6 | |||
| 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"]]. | ||
| 8 | |||
| 9 | === Parameters === | ||
| 10 | |||
| 11 | There are no special parameters. The documentation for the [[Javac>>url:http://ant.apache.org/manual/Tasks/javac.html||shape="rect"]] applies. | ||
| 12 | |||
| 13 | === Nested Elements === | ||
| 14 | |||
| 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. | ||
| 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}} |