You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by eh...@apache.org on 2003/12/11 15:02:02 UTC
cvs commit: jakarta-tapestry/framework build.xml
ehatcher 2003/12/11 06:02:02
Modified: contrib build.xml
framework build.xml
Log:
Glenn's patch to do a little verification that servlet.jar and j2ee.jar are present
Revision Changes Path
1.20 +14 -2 jakarta-tapestry/contrib/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/contrib/build.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- build.xml 21 May 2003 23:40:23 -0000 1.19
+++ build.xml 11 Dec 2003 14:02:02 -0000 1.20
@@ -23,13 +23,25 @@
<target name="clean">
<delete dir="${classes.dir}"/>
</target>
- <target name="compile" depends="init"
+
+ <target name="check-j2ee-jar">
+ <available property="exists.j2ee.jar.path" type="file" file="${j2ee.jar.path}" />
+ <fail unless="j2ee.jar.path"
+ message="Property j2ee.jar.path not specified in config/build.properties."
+ />
+ <fail unless="exists.j2ee.jar.path"
+ message="JAR ${j2ee.jar.path} (j2ee.jar.path from config/build.properties) does not exist."
+ />
+ </target>
+
+ <target name="compile" depends="init,check-j2ee-jar"
description="Compile all classes in the framework.">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
target="1.1">
<classpath refid="project.classpath"/>
</javac>
</target>
+
<target name="install" depends="compile"
description="Compile all classes and build the installed JAR including all package resources."
>
1.26 +13 -2 jakarta-tapestry/framework/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/build.xml,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- build.xml 22 Jun 2003 02:56:14 -0000 1.25
+++ build.xml 11 Dec 2003 14:02:02 -0000 1.26
@@ -18,7 +18,18 @@
<target name="clean">
<delete dir="${classes.dir}"/>
</target>
- <target name="compile" depends="init"
+
+ <target name="check-servlet-jar">
+ <available property="exists.servlet.jar" type="file" file="${servlet.jar.path}" />
+ <fail unless="servlet.jar.path"
+ message="Property servlet.jar.path not specified in config/build.properties."
+ />
+ <fail unless="exists.servlet.jar"
+ message="JAR ${servlet.jar.path} (servlet.jar.path from config/build.properties) does not exist."
+ />
+ </target>
+
+ <target name="compile" depends="init,check-servlet-jar"
description="Compile all classes in the framework.">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
target="1.1">
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org