You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2004/04/15 03:16:39 UTC

cvs commit: cocoon-2.1/tools/targets validate-build.xml

crossley    2004/04/14 18:16:39

  Modified:    .        status.xml
               tools/targets validate-build.xml
  Log:
  Added standalone build target "validate-sitemaps".
  
  Revision  Changes    Path
  1.301     +4 -1      cocoon-2.1/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/status.xml,v
  retrieving revision 1.300
  retrieving revision 1.301
  diff -u -r1.300 -r1.301
  --- status.xml	13 Apr 2004 01:34:09 -0000	1.300
  +++ status.xml	15 Apr 2004 01:16:39 -0000	1.301
  @@ -212,6 +212,9 @@
     <changes>
   
    <release version="@version@" date="@date@">
  +   <action dev="DC" type="add">
  +     Added standalone build target "validate-sitemaps".
  +   </action>
      <action dev="AG" type="update">
        Updated Xindice to 1.1b4, xmldb-api to 20030701, xmldb-common to 20030701 and xmldb-xupdate to 20040205
      </action>
  
  
  
  1.7       +21 -6     cocoon-2.1/tools/targets/validate-build.xml
  
  Index: validate-build.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/tools/targets/validate-build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- validate-build.xml	2 Apr 2004 19:07:49 -0000	1.6
  +++ validate-build.xml	15 Apr 2004 01:16:39 -0000	1.7
  @@ -83,7 +83,7 @@
       <echo message="Validating some important configuration files"/>
   
       <echo message="Validating cocoon.xconf using a very basic RELAX NG grammar ..."/>
  -    <jing rngfile="${build.webapp}/WEB-INF/entities/any.rng">
  +    <jing rngfile="${webapp}/WEB-INF/entities/any.rng">
         <fileset dir="${build.webapp}/WEB-INF" includes="cocoon.xconf"/>
       </jing>
     </target>
  @@ -121,14 +121,29 @@
       </xmlvalidate>
   -->
   
  -    <echo message="Validating the documentation sitemap.xmap using RELAX NG ..."/>
  -    <jing rngfile="${webapp}/WEB-INF/entities/sitemap-v06.rng">
  -      <fileset dir="${build.context}" includes="sitemap.xmap"/>
  -    </jing>
  -
   <!--    <echo message="Validating all documentation stylesheets using RELAX NG ..."/>
       <jing rngfile="${webapp}/WEB-INF/entities/xslt-20020523.rng">
         <fileset dir="${build.context}/stylesheets" includes="**/*.xsl"/>
       </jing>-->
  +  </target>
  +
  +  <target name="validate-sitemaps" depends="init-tasks"
  +          description="Standalone target to validate all sitemaps">
  +    <echo message="Validating all sitemap.xmap using RELAX NG ..."/>
  +    <echo>Note: This is experimental.
  +You may need to tweak the sitemap-v*.rng to handle stuff that is truly valid.
  +Blocks sitemaps are deliberately excluded.
  +    </echo>
  +    <jing rngfile="${webapp}/WEB-INF/entities/sitemap-v06.rng">
  +<!--
  +      <fileset dir="${blocks}" includes="**/sitemap.xmap"/>
  +-->
  +      <fileset dir="${webapp}" includes="**/sitemap.xmap"/>
  +      <fileset dir="${documentation}" includes="sitemap*.xmap"/>
  +      <fileset dir="${docs}" includes="**/drafts/sitemap-allowed.xmap"/>
  +<!--
  +      <fileset dir="${docs}" includes="**/drafts/sitemap-working-draft.xmap"/>
  +-->
  +    </jing>
     </target>
   </project>