cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Simon Mieth)
Subject Re: [CLI] Problem with XSP compilation
Date Wed, 12 Jan 2005 22:40:48 GMT
On Wed, 12 Jan 2005 15:47:34 +0100
Olivier Billard <> wrote:

> Thanks for the answer, Simon.
> Unfortunatly, this doesn't work for me, because I'm using Windows, and
the environment vars max length isn't that long, to store 
> all cocoon needed jars... And your solution requires to use the
CLASSPATH env var...
> But this could have helped me :)
> --
> Olivier

Hi Olivier,

Ant can do the job too. Here is a simple build-file.

<project name="XSPPrecompile" default="precompile" basedir=".">
 <property name="cocoon.home" value="build/webapp"/>
 <property name="" value="work"/>

 <target name="precompile">
    <java classname="org.apache.cocoon.bean.XSPPrecompileWrapper"

       <!-- the commandline switches -->
       <arg line="-c ${cocoon.home} -w ${}"/>

       <!-- add here things you need -->
       	  <fileset dir="${cocoon.home}/WEB-INF/lib">
	     <include name="**/*.jar" />
          <fileset dir="${cocoon.home}/WEB-INF/classes">
	     <include name="**/*.class" />

Put this ('precompile.xml') to the cocoon-root folder of your
cocoon-distribution and you can use the bundled ant from cocoon by:

java -cp tools/lib/ant.jar;tools/lib/ant-launcher.jar -f precompile.xml

will generate all to the work-directory ( 

Best Regards,


View raw message