You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by cr...@apache.org on 2002/11/11 03:21:28 UTC

cvs commit: xml-forrest build.xml status.xml

crossley    2002/11/10 18:21:27

  Modified:    .        build.xml status.xml
  Log:
  Validation of important core configuration files at build-time using RNG.
  
  Revision  Changes    Path
  1.41      +43 -1     xml-forrest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/build.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- build.xml	5 Nov 2002 10:59:24 -0000	1.40
  +++ build.xml	11 Nov 2002 02:21:27 -0000	1.41
  @@ -171,13 +171,55 @@
   
     </target>
   
  +  <!-- =================================================================== -->
  +  <!-- Validate the important core configuration files                     -->
  +  <!-- =================================================================== -->
  +  <target name="validate-config" depends="init"
  +          description="Validate the important core configuration files">
  +<!-- FIXME allow switch
  +          if="validate.config">
  +-->
  +    <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
  +      <classpath>
  +        <fileset dir="./lib/core" includes="*.jar" />
  +      </classpath>
  +    </taskdef>
  +    <!-- skinconf.xml -->
  +    <echo message="validating **/skinconf.xml ..."/>
  +    <jing rngfile="./src/resources/schema/relaxng/skinconf-v10.rng">
  +      <fileset dir="./src/resources" includes="**/skinconf.xml"/>
  +      <fileset dir="./src/documentation" includes="**/skinconf.xml"/>
  +    </jing>
  +    <!-- All stylesheets **/*.xsl -->
  +    <echo message="validating stylesheets **/*.xsl ..."/>
  +    <jing rngfile="./src/resources/schema/relaxng/xslt.rng">
  +      <fileset dir="./src/resources" includes="**/*.xsl"/>
  +      <fileset dir="./tools" includes="**/*.xsl"/>
  +    </jing>
  +    <!-- sitemap.xmap -->
  +    <echo message="validating **/sitemap.xmap ..."/>
  +    <jing rngfile="./src/resources/schema/relaxng/sitemap-v05.rng">
  +      <fileset dir="./src/resources" includes="**/sitemap.xmap"/>
  +<!-- FIXME: Excluded for the moment because it breaks.
  +      <fileset dir="./src/resources/editor" includes="editor.xmap"/>
  +-->
  +    </jing>
  +    <!-- book.xml -->
  +<!-- FIXME: Need Norm Walsh catalog entity resolver or Jeff's DoctypeChanger.
  +    <echo message="validating **/book.xml ..."/>
  +    <jing rngfile="./src/resources/schema/relaxng/book-v01.rng">
  +      <fileset dir="./src/documentation" includes="**/book.xml"/>
  +      <fileset dir="./src/resources" includes="**/book.xml"/>
  +    </jing>
  +-->
  +  </target>
   
   
     <!-- =================================================================== -->
     <!-- Make the shell-bat distribution                                     -->
     <!-- =================================================================== -->
     <target name="dist-shbat" 
  -          depends="fresh-site-zip, webapp-webinf, bare-context-dir" >
  +          depends="validate-config, fresh-site-zip, webapp-webinf, bare-context-dir" >
       <!-- TODO: decide on a better place to read/set this prop from/to -->
       <property name="dist-shbat.dir" value="./build/dist/shbat" />
   
  
  
  
  1.43      +4 -0      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- status.xml	10 Nov 2002 07:26:22 -0000	1.42
  +++ status.xml	11 Nov 2002 02:21:27 -0000	1.43
  @@ -98,6 +98,10 @@
   
     <changes>
      <release version="0.1" date="2002">
  +    <action dev="DC" type="add" context="build">
  +     Validation of important core configuration files at build-time using
  +     RELAX NG.
  +    </action> 
       <action dev="DC" type="add" context="docs">
        New document <link href="community/index.html">Community Resources</link>
        including draft "Apache Statistics".