dev@javaserverfaces.java.net

[REVIEW] Add logic to jsf-api create.standard.xml task to validate the generated document

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Thu, 11 Nov 2004 11:49:47 -0500

The target will now fail if the generated document isn't valid.

SECTION: Modified Files
-----------------------------------
M jsf-api/build.xml
  - Use custom ValidateTask to perform schema validation of the
    generated standard-html-renderkit.xml

A jsf-tools/src/com/sun/faces/ant/ValidateTask.java
  - Simple task to perform schema validation of standard-html-renderkit.xml

SECTION: Diffs
------------------------------------
Index: build.xml
===================================================================
RCS file: /cvs/javaserverfaces-sources/jsf-api/build.xml,v
retrieving revision 1.136
diff -u -r1.136 build.xml
--- build.xml 8 Nov 2004 20:15:57 -0000 1.136
+++ build.xml 11 Nov 2004 16:46:24 -0000
@@ -732,6 +732,16 @@
         </replacevalue>
     </replace>
     <delete file="${basedir}/doc/standard-html-renderkit-impl.xml"/>
+
+ <ant dir="${jsf-tools.dir}" target="tools" inheritAll="false"/>
+
+ <!-- validate the generated standard-html-renderkit.xml -->
+ <taskdef name="validate" classname="com.sun.faces.ant.ValidateTask">
+ <classpath>
+ <pathelement location="${jsf-tools.dir}/build/classes"/>
+ </classpath>
+ </taskdef>
+ <validate schemaDir="${basedir}/doc"/>
   </target>
 
   <!--



SECTION: New Files
------------------------------------
See Attachment: ValidateTask.java



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net