Ana, I made a change to the build.xml file... I think this will enable
Windows to work now. Can you give it a try? You'll need to undo the
changes I had you put in place temporarily yesterday. Let me know how
it goes...
Thanks!
Ken
Ana Caballero wrote:
> Hi Ken,
>
> I'm getting the following errors. Do I need to do anything to my
> environment?
>
> C:\as91\jsf\jsftemplating>ant build
> Buildfile: build.xml
>
> compile-apt-files:
> [echo] C:\Java\jdk1.5.0_03\jre
>
> jar-apt-files:
>
> compile:
>
> BUILD FAILED
> C:\as91\jsf\jsftemplating\build.xml:73: Execute failed:
> java.io.IOException: Cre
> ateProcess: ant -f aptbuild.xml -lib lib/external/ant-apt.jar compile
> error=2
>
> Total time: 1 second
>
> Ken Paulsen wrote:
>>
>> I changed the way apt is invoked in the JSFTemplating project. I
>> believe this will simplify the build process, however, I know from
>> past experience that different people's environments, versions of
>> ant, etc have caused problems. Please let me know if you run into
>> any build problems (esp. wrt "apt").
>>
>> Basic summary of the change: build.xml calls aptbuild.xml when it
>> needs to compile files via apt. Doing this allows the ant-apt.jar to
>> be specified automatically.
>>
>> Thanks,
>>
>> Ken
>>
>> ------------------------------------------------------------------------
>>
>> Subject:
>> [CVS JSFTemplating] CVS update: /jsftemplating/
>> From:
>> kenpaulsen_at_dev.java.net
>> Date:
>> Thu, 22 Jun 2006 08:08:56 +0000
>> To:
>> cvs_at_jsftemplating.dev.java.net
>>
>> To:
>> cvs_at_jsftemplating.dev.java.net
>>
>>
>> User: kenpaulsen
>> Date: 2006/06/22 01:08:56
>>
>> Added:
>> jsftemplating/aptbuild.xml
>>
>> Modified:
>> jsftemplating/build.xml
>>
>> Log:
>> * Moved that <apt> task to its own build.xml (aptbuild.xml) file. This
>> allows me to invoke ant on itself passing in the required ant-apt.jar
>> file... and making the build work out of the box (provided ant 1.6+).
>>
>> File Changes:
>>
>> Directory: /jsftemplating/
>> ==========================
>>
>> File [changed]: build.xml
>> Url: https://jsftemplating.dev.java.net/source/browse/jsftemplating/build.xml?r1=1.9&r2=1.10
>> Delta lines: +7 -13
>> --------------------
>> --- build.xml 9 Jun 2006 01:36:13 -0000 1.9
>> +++ build.xml 22 Jun 2006 08:08:53 -0000 1.10
>> @@ -1,12 +1,13 @@
>> <!-- Build file for JSFTemplating -->
>> <project name="JSFTemplating" default="build" basedir=".">
>> - <taskdef name="apt" classname="org.apache.tools.ant.taskdefs.Apt" />
>>
>> <!-- Set properties -->
>> - <property environment="env" />
>> <property file="build.properties" />
>> <property file="user.properties" />
>> + <!--
>> + <property environment="env" />
>> <property file="${user.home}/build.properties" />
>> + -->
>>
>> <path id="dependencies">
>> <pathelement location="${servlet-api.jar}" />
>> @@ -69,16 +70,10 @@
>> <target name="compile" depends="jar-apt-files">
>> <mkdir dir="${build}/." />
>>
>> - <!-- Compile the java code from ${src} into ${build} -->
>> - <apt srcdir="${src}"
>> - fork="true"
>> - destdir="${build}/."
>> - debug="${compile.debug}"
>> - deprecation="${compile.deprecation}"
>> - excludes="**/annotation/**"
>> - optimize="${compile.optimize}">
>> - <classpath refid="dependencies" />
>> - </apt>
>> + <exec dir="." executable="ant">
>> + <!-- We do this to add the ant-apt.jar to the lib path -->
>> + <arg line="-f aptbuild.xml -lib lib/external/ant-apt.jar compile" />
>> + </exec>
>> </target>
>>
>> <target name="jar" depends="compile">
>> @@ -162,5 +157,4 @@
>> <!-- build all sample apps under the samples directory -->
>> <ant dir="samples" target="build" />
>> </target>
>> -
>> </project>
>>
>> File [added]: aptbuild.xml
>> Url: https://jsftemplating.dev.java.net/source/browse/jsftemplating/aptbuild.xml?rev=1.1&content-type=text/vnd.viewcvs-markup
>> Added lines: 32
>> ---------------
>> <!-- Build file for JSFTemplating -->
>> <project name="JSFTemplating" default="build" basedir=".">
>> <taskdef name="apt" classname="org.apache.tools.ant.taskdefs.Apt" />
>>
>> <!-- Set properties -->
>> <property file="build.properties" />
>> <property file="user.properties" />
>> <!--
>> <property environment="env" />
>> <property file="${user.home}/build.properties" />
>> -->
>>
>> <!-- The "dependencies" path should exist in both build.xml files -->
>> <path id="dependencies">
>> <pathelement location="${servlet-api.jar}" />
>> <pathelement location="${jsf-api.jar}" />
>> <pathelement location="${jsftemplating-dt.jar}" />
>> </path>
>>
>> <target name="compile">
>> <!-- Compile the java code from ${src} into ${build} -->
>> <apt srcdir="${src}"
>> fork="true"
>> destdir="${build}/."
>> debug="${compile.debug}"
>> deprecation="${compile.deprecation}"
>> excludes="**/annotation/**"
>> optimize="${compile.optimize}">
>> <classpath refid="dependencies" />
>> </apt>
>> </target>
>> </project>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cvs-unsubscribe_at_jsftemplating.dev.java.net
>> For additional commands, e-mail: cvs-help_at_jsftemplating.dev.java.net
>>
>>
>>