- From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 19 Jan 2009 19:01:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator In directory hutz:/tmp/cvs-serv2579 Modified Files: build.xml Log Message: automatically fetch necessary libs when running ant war (or ant prepare) Index: build.xml =================================================================== RCS file: /sources/public/2002/css-validator/build.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- build.xml 19 Jan 2009 16:59:37 -0000 1.9 +++ build.xml 19 Jan 2009 19:01:14 -0000 1.10 @@ -9,6 +9,11 @@ <property file="build.properties"/> <property name="servlet.lib" value="/usr/share/java/servlet-2.3.jar"/> + <!-- Configure these properties to access the Manager application --> + <property name="url" value="http://localhost:8080/manager"/> + <property name="username" value="tomcat"/> + <property name="password" value="tomcat"/> + <!-- =================================================================== --> <!-- Project-wide properties --> <!-- =================================================================== --> @@ -29,7 +34,47 @@ </fileset> </path> - <target name="build" description="Builds the validator"> + <target name="prepare.check"> + <condition property="prepare.run"> + <and> + <available file="lib/jigsaw.jar"/> + <available file="lib/commons-collections-3.2.1.jar"/> + <available file="lib/commons-lang-2.4.jar"/> + <available file="lib/velocity-1.6.1.jar"/> + <available file="lib/xercesImpl.jar"/> + <available file="lib/xml-apis.jar"/> + <available file="lib/tagsoup-1.2.jar"/> + </and> + </condition> + </target> + + + <target name="prepare" description="Downloads necessary libs" depends="prepare.check" unless="prepare.run"> + <mkdir dir="lib"/> + <mkdir dir="tmp"/> + + <get dest="tmp/jigsaw_2.2.6.tar.gz" src="http://jigsaw.w3.org/Distrib/jigsaw_2.2.6.tar.gz" usetimestamp="true"/> + <get dest="tmp/commons-collections-3.2.1-bin.tar.gz" src="http://www.apache.org/dist/commons/collections/binaries/commons-collections-3.2.1-bin.tar.gz" usetimestamp="true"/> + <get dest="tmp/commons-lang-2.4-bin.tar.gz" src="http://www.apache.org/dist/commons/lang/binaries/commons-lang-2.4-bin.tar.gz" usetimestamp="true"/> + <get dest="tmp/velocity-1.6.1.tar.gz" src="http://www.apache.org/dist/velocity/engine/1.6.1/velocity-1.6.1.tar.gz" usetimestamp="true"/> + <get dest="tmp/Xerces-J-bin.2.9.1.tar.gz" src="http://www.apache.org/dist/xerces/j/Xerces-J-bin.2.9.1.tar.gz" usetimestamp="true"/> + + <untar compression="gzip" src="tmp/jigsaw_2.2.6.tar.gz" dest="tmp"/> + <untar compression="gzip" src="tmp/commons-collections-3.2.1-bin.tar.gz" dest="tmp"/> + <untar compression="gzip" src="tmp/commons-lang-2.4-bin.tar.gz" dest="tmp"/> + <untar compression="gzip" src="tmp/velocity-1.6.1.tar.gz" dest="tmp"/> + <untar compression="gzip" src="tmp/Xerces-J-bin.2.9.1.tar.gz" dest="tmp"/> + + <copy file="tmp/Jigsaw/classes/jigsaw.jar" tofile="lib/jigsaw.jar"/> + <copy file="tmp/commons-collections-3.2.1/commons-collections-3.2.1.jar" tofile="lib/commons-collections-3.2.1.jar"/> + <copy file="tmp/commons-lang-2.4/commons-lang-2.4.jar" tofile="lib/commons-lang-2.4.jar"/> + <copy file="tmp/velocity-1.6.1/velocity-1.6.1.jar" tofile="lib/velocity-1.6.1.jar"/> + <copy file="tmp/xerces-2_9_1/xercesImpl.jar" tofile="lib/xercesImpl.jar"/> + <copy file="tmp/xerces-2_9_1/xml-apis.jar" tofile="lib/xml-apis.jar"/> + <get dest="lib/tagsoup-1.2.jar" src="http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-1.2.jar"/> + </target> + + <target name="build" description="Builds the validator" depends="prepare"> <mkdir dir="./build"/> <javac classpathref="build.class.path" @@ -46,6 +91,17 @@ </copy> </target> + <target name="jigsaw" description="Builds the validator for Jigsaw"> + <mkdir dir="./build"/> + <javac + classpathref="build.class.path" + destdir=".d" + encoding="UTF-8" + debug="yes"> + <src path="./org/w3c"/> + </javac> + </target> + <target name="javadoc" description="Generates API docs"> <mkdir dir="./javadoc"/> <javadoc @@ -80,11 +136,12 @@ </war> </target> - <target name="clean" description="Cleans up generated files"> - <delete file="${jar.file}"/> - <delete file="${war.file}"/> - <delete dir="./build"/> - <delete dir="./javadoc"/> - </target> + <target name="clean" description="Cleans up generated files"> + <delete file="${jar.file}"/> + <delete file="${war.file}"/> + <delete dir="./build"/> + <delete dir="./javadoc"/> + <delete dir="./tmp"/> + </target> </project>
Received on Monday, 19 January 2009 19:01:26 UTC