crossley    2002/10/29 21:18:55

  Modified:    .        build.xml
  Log:
  New "validate" task to do RELAX NG validation of various XML instances.
  
  Revision  Changes    Path
  1.274     +29 -0     xml-cocoon2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.xml,v
  retrieving revision 1.273
  retrieving revision 1.274
  diff -u -r1.273 -r1.274
  --- build.xml 29 Oct 2002 13:11:38 -0000      1.273
  +++ build.xml 30 Oct 2002 05:18:55 -0000      1.274
  @@ -2137,6 +2137,35 @@
       
     </target>
   
  +  <!-- =================================================================== -->
  +  <!-- Validation using RELAX NG                                           -->
  +  <!-- =================================================================== -->
  +  <!-- Depends on some "prepare-*" targets, so that the sitemaps are generated
  +       and copied to the build.
  +FIXME: Why does prepare-webapp depend on copy-webapp? This means that "compile"
  +target is also called, which is un-necessary for the 'validate' target.
  +  -->
  +  <target name="validate" description="Validation using RELAX NG"
  +          depends="prepare-docs, prepare-webapp, prepare-webapp-scratchpad">
  +   <echo message="Validating various XML instances using RELAX NG."/>
  +   <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
  +    <classpath refid="anttasks.classpath"/>
  +   </taskdef>
  +
  +   <!-- cocoon.roles -->
  +   <echo message="Validating all cocoon.roles instances ..."/>
  +   <jing rngfile="${webapp.dir}/WEB-INF/entities/roles-v01.rng">
  +    <fileset dir="${build.dir}" includes="**/cocoon.roles"/>
  +   </jing>
  +
  +   <!-- sitemap.xmap -->
  +   <echo message="Validating all sitemap.xmap instances ..."/>
  +   <echo message="FIXME: The RNG grammar and sitemaps still need tweaking."/>
  +   <jing rngfile="${webapp.dir}/WEB-INF/entities/sitemap-v05.rng">
  +    <fileset dir="${build.dir}" includes="**/sitemap.xmap"/>
  +   </jing>
  +  </target>
  +
     
   </project>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to