You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/02/18 13:00:03 UTC
[WIKI-UPDATE] CommandLine Tue Feb 18 13:00:03 2003
Page: http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine , version: 7 on Tue Feb 18 11:39:34 2003 by BertrandDelacretaz
+ !!!15. Sample from Cocoon's own build.xml file
+ Cocoon uses itself in command-line mode to generate its documentation. Studying the build.xml file that comes with the Cocoon source gives a very concrete example of how to use the command-line mode.
+ Here's the relevant build.xml section from the current source code. Although this build information is meant for ''ant'', it is fairly self-explanatory.
+ {{{
+ <java classname="org.apache.cocoon.Main" fork="true"
+ dir="${build.context}"
+ failonerror="true" maxmemory="128m">
+ <arg value="-c."/>
+ <arg value="-d../docs"/>
+ <arg value="-w../work"/>
+ <arg value="-b../brokenlinks.txt"/>
+ <arg value="-k../documentation/logkit.xconf"/>
+ <arg value="-u${build.docs.loglevel}"/>
+ <arg value="-V"/>
+ <arg value="index.html"/>
+ <classpath>
+ <path refid="classpath"/>
+ <fileset dir="${build.dir}">
+ <include name="*.jar"/>
+ </fileset>
+ <pathelement location="${tools.jar}"/>
+ <pathelement location="${build.context}/WEB-INF/classes"/>
+ </classpath>
+ </java>
+ }}}
+
+