2006/ws/policy build.xml,1.3,1.4

Update of /sources/public/2006/ws/policy
In directory hutz:/tmp/cvs-serv14783

Modified Files:
	build.xml 
Log Message:
Improved the validate tasks
Note that the main task will not do a full validate, you need to explicitly call validate to validate xsl and svg as well.


Index: build.xml
===================================================================
RCS file: /sources/public/2006/ws/policy/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- build.xml	13 Jul 2006 19:33:03 -0000	1.3
+++ build.xml	14 Jul 2006 14:07:41 -0000	1.4
@@ -1,44 +1,50 @@
 <!-- Apache Ant script to build spec.
      Philippe Le Hegaret, W3C -->
      
-<project name="WS-Policy" default="main" basedir=".">
+<project name="WS-Policy 1.5" default="main" basedir=".">
 
-  <property name="stylesheet" value="xmlspec-policy.xsl"/>
-  <property name="change.log.start" value="1 Oct 2004"/>
-  <property name="change.log.end" value="1 Dec 2006"/>
-  
-  <target name="clean">
-  	<delete quiet="true" file="ws-policy-framework.html" />
-  	<delete quiet="true" file="ws-policy-attachment.html" />
-  </target>
-  
-	<target name="validate" description="Validates all XML files.">
-		<!-- <xmlvalidate lenient="true">
-			<fileset dir="." includes="*.xsl" />
-		</xmlvalidate> -->
-		<xmlvalidate lenient="false" warn='yes'>
-			<fileset dir="." includes="ws-policy*.xml" />
+	<property name="stylesheet" value="xmlspec-policy.xsl"/>
+
+	<target name="clean">
+		<delete quiet="true" file="ws-policy-framework.html"/>
+		<delete quiet="true" file="ws-policy-attachment.html"/>
+	</target>
+
+	<target name="validate-xsl" description="Validates all XML files.">
+		<xmlvalidate lenient="true">
+			<fileset dir="." includes="*.xsl"/>
+		</xmlvalidate>
+	</target>
+
+	<target name="validate-svg" description="Validates all SVG files.">
+		<xmlvalidate lenient="false" warn="yes">
+			<fileset dir="." includes="*.svg"/>
 		</xmlvalidate>
 	</target>
 
+	<target name="validate-policy-specs" description="Validates all WS Policy spec files.">
+		<xmlvalidate lenient="false" warn="yes">
+			<fileset dir="." includes="ws-policy*.xml"/>
+		</xmlvalidate>
+	</target>
+	
+	<target name="validate" depends="validate-xsl,validate-svg,validate-policy-specs" />
+	
 	<target name="html" description="Transforms xml into html.">
-	    <xslt style="${stylesheet}" in="ws-policy-framework.xml" out="ws-policy-framework.html" force="yes">
-			<param name="status" expression="ed-copy" />
+		<xslt style="${stylesheet}" in="ws-policy-framework.xml" out="ws-policy-framework.html"
+			force="yes">
+			<param name="status" expression="ed-copy"/>
 		</xslt>
-	    <xslt style="${stylesheet}" in="ws-policy-attachment.xml" out="ws-policy-attachment.html" force='yes'>
-			<param name="status" expression="ed-copy" />
+		<xslt style="${stylesheet}" in="ws-policy-attachment.xml" out="ws-policy-attachment.html"
+			force="yes">
+			<param name="status" expression="ed-copy"/>
 		</xslt>
 	</target>
 
-  <target name="changelog">
-    <cvschangelog
-      dir="${doc.home}"
-      destfile="${dist.home}/changelog.xml"
-      start="${change.log.start}"
-      end="${change.log.end}"/>
-  </target>
+	<target name="changelog" description="Generate XML out of the CVS change log">
+		<cvschangelog destfile="changelog.xml"/>
+	</target>
+
+	<target name="main" depends="validate-policy-specs,html"/>
 
-  <target name="main" depends="validate,html">
-  </target>
-		
 </project>

Received on Friday, 14 July 2006 14:07:58 UTC