W3C home > Mailing lists > Public > www-validator-cvs@w3.org > June 2010

commit: added a task to use default config files

From: Mercurial notifier <nobody@w3.org>
Date: Mon, 14 Jun 2010 09:22:32 -0400
To: Unicorn Updates <www-validator-cvs@w3.org>
Message-Id: <E1OO9cW-00065k-H1@blinky.w3.org>
changeset:   1197:116ec18dc4e2
user:        Thomas Gambet <tgambet@w3.org>
date:        Fri Jun 11 14:09:36 2010 -0400
files:       build.xml
description:
added a task to use default config files


diff -r cd0675d80f2b -r 116ec18dc4e2 build.xml
--- a/build.xml	Fri Jun 11 14:08:25 2010 -0400
+++ b/build.xml	Fri Jun 11 14:09:36 2010 -0400
@@ -5,16 +5,17 @@
 	<property name="src" location="src"/>
 	<property name="build" location="build"/>
 	<property name="dist" location="dist"/>
-	<property name="serverLibPath" location="/usr/share/jetty/lib/"/>
+	<property name="servletJarPath" location="/usr/share/jetty/lib/"/>
 	
 	<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"/>
+			<classes dir="build/classes"/>
 			<fileset dir="WebContent">
 				<exclude name="WEB-INF/web.xml"/>
+				<exclude name="WEB-INF/conf/"/>
 			</fileset>
 		</war>
 	</target>
@@ -43,10 +44,17 @@
 		<mkdir dir="${build}/classes"/>
 		<javac srcdir="${src}" destdir="${build}/classes" debug="on" debuglevel="lines,vars,source">
 			<classpath>
-				<fileset dir="${serverLibPath}" includes="*.jar"/>
+				<fileset dir="${servletJarPath}" includes="*.jar"/>
 				<fileset dir="WebContent/WEB-INF/lib" includes="*.jar"/>
 			</classpath>
         </javac>
+	</target>
+	
+	<target name="use_default_conf">
+		<copy todir="build/classes/">
+		    <fileset dir="WebContent/WEB-INF/conf"/>
+			<globmapper from="*.default" to="*"/>
+		</copy>
 	</target>
 	
 	<target name="compress-css">
@@ -63,13 +71,12 @@
 		</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 name="generate_tasklist_jar">
+		<xmlbean schema="WebContent/WEB-INF/resources/schemas/tasklist.xsd" destfile="WebContent/WEB-INF/lib/unicorn-tasklist.jar" javasource="1.5" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
 	</target>
 	
-	<target name="xsd2">
-		<xmlbean schema="WebContent/WEB-INF/resources/schemas/observer-response2.xsd" destfile="WebContent/WEB-INF/lib/observationresponse2.jar" javasource="1.5" classpath="WebContent/WEB-INF/lib/xbean.jar"/>
+	<target name="generate_observer_jar">
+		<xmlbean schema="WebContent/WEB-INF/resources/schemas/observer-response.xsd" destfile="WebContent/WEB-INF/lib/unicorn-response.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"/>
Received on Monday, 14 June 2010 13:25:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:20 GMT