W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2009

2006/unicorn build.xml,1.9.4.13,1.9.4.14

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 24 Aug 2009 19:39:33 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MffO9-0008Ky-GR@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn
In directory hutz:/tmp/cvs-serv32026

Modified Files:
      Tag: dev2
	build.xml 
Log Message:
added tasks for jigsaw and jar deployment

Index: build.xml
===================================================================
RCS file: /sources/public/2006/unicorn/build.xml,v
retrieving revision 1.9.4.13
retrieving revision 1.9.4.14
diff -u -d -r1.9.4.13 -r1.9.4.14
--- build.xml	20 Aug 2009 14:42:12 -0000	1.9.4.13
+++ build.xml	24 Aug 2009 19:39:31 -0000	1.9.4.14
@@ -1,35 +1,65 @@
 <?xml version="1.0" ?>
 <project name="" basedir=".">
 	<property name="warfile" value="unicorn"/>
-	<target name="unpack">
-		<unwar src="${warfile}.war" dest="${warfile}" />
-	</target>
-	<target name="create">
-		<war destfile="${warfile}.war" webxml="WebContent/WEB-INF/web.xml" update="true">
+	<property name="webapps" value="."/>
+	<property name="src" location="src"/>
+	<property name="build" location="build"/>
+	<property name="dist" location="dist"/>
+	
+	<target name="all" depends="war, jigsaw, jar"/>
+	
+	<target name="war" depends="compile" description="Generate unicorn.war">
+		<mkdir dir="${dist}"/>
+		<war destfile="${dist}/${warfile}.war" webxml="WebContent/WEB-INF/web.xml" update="true">
 			<classes dir="build\classes"/>
 			<fileset dir="WebContent">
 				<exclude name="WEB-INF/web.xml"/>
 			</fileset>
 		</war>
 	</target>
-	<target name="copy">
-		<copy todir="/home/tgambet/apache-tomcat-6.0.20/webapps" overwrite="true">
-			<fileset dir=".">
-				<include name="*.war"/>
-			</fileset>
+	
+	<target name="jigsaw" depends="compile" description="Generate folder for Jigsaw" >
+		<mkdir dir="${dist}/jigsaw"/>
+		<copy todir="${dist}/jigsaw" overwrite="true">
+			<fileset dir="WebContent"/>
+		</copy>
+		<copy todir="${dist}/jigsaw/WEB-INF" overwrite="true">
+			<fileset dir="${build}"/>
 		</copy>
 	</target>
-	<target name="deploy">
-		<antcall target="create"/>
-		<antcall target="copy"/>
+	
+	<target name="jar" depends="compile" description="Generate unicorn.jar" >
+		<mkdir dir="${dist}"/>
+		<jar jarfile="${dist}/unicorn.jar" basedir="${build}"/>
 	</target>
-	<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
-	<target name="xsd-src">
-		<xmlbean schema="WebContent/WEB-INF/resources/schemas/tasklist.xsd" srcgendir="src" javasource="1.5" srconly="true" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
+
+	<target name="clean" description="clean up" >
+		<delete dir="${build}/classes"/>
+		<delete dir="${dist}"/>
 	</target>
+	
+	<target name="compile">
+		<mkdir dir="${build}/classes"/>
+		<javac srcdir="${src}" destdir="${build}/classes" debug="on" debuglevel="lines,vars,source">
+			<classpath>
+				<fileset dir="WebContent/WEB-INF/lib" includes="*.jar"/>
+			</classpath>
+        </javac>
+	</target>
+	
+	<target name="deploy" depends="war">
+		<copy todir="${webapps}" overwrite="true">
+			<fileset dir=".">
+				<include name="${dist}/unicorn.war"/>
+			</fileset>
+		</copy>
+	</target>
+	
 	<target name="xsd">
 		<xmlbean schema="WebContent/WEB-INF/resources/schemas/tasklist.xsd" destfile="WebContent/WEB-INF/lib/tasklist.jar" javasource="1.5" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
 		<xmlbean schema="WebContent/WEB-INF/resources/schemas/observer-response.xsd" destfile="WebContent/WEB-INF/lib/observationresponse.jar" javasource="1.5" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
 	</target>
 	
+	<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
+	
 </project>
Received on Monday, 24 August 2009 19:39:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:38 UTC