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 2002/11/19 06:22:38 UTC

cvs commit: xml-cocoon2 properties.xml build.xml

crossley    2002/11/18 21:22:38

  Modified:    .        properties.xml build.xml
  Log:
  Added new target "validate-xdocs" to do the core XML documentation.
  
  Revision  Changes    Path
  1.12      +2 -1      xml-cocoon2/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/properties.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- properties.xml	15 Nov 2002 02:47:05 -0000	1.11
  +++ properties.xml	19 Nov 2002 05:22:38 -0000	1.12
  @@ -79,7 +79,8 @@
   
        <!-- build-time validation of important core configuration files -->
        <validate
  -      config="true" />
  +      config="true"
  +      xdocs="true" />
         
      </build>
      
  
  
  
  1.282     +22 -1     xml-cocoon2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/build.xml,v
  retrieving revision 1.281
  retrieving revision 1.282
  diff -u -r1.281 -r1.282
  --- build.xml	19 Nov 2002 04:17:19 -0000	1.281
  +++ build.xml	19 Nov 2002 05:22:38 -0000	1.282
  @@ -206,6 +206,9 @@
       <condition property="validate.config">
         <istrue value="${build.validate.config}"/>
       </condition>
  +    <condition property="validate.xdocs">
  +      <istrue value="${build.validate.xdocs}"/>
  +    </condition>
   
       <echo message="--------------------------------------------------------------"/>
       <echo message="            ${fullname} ${version} [${year}]                  "/>
  @@ -2169,7 +2172,7 @@
       <classpath refid="anttasks.classpath"/>
      </taskdef>
      <echo message="Conducting validation of core configuration files."/>
  -   <echo message="(Turn validation off using ./properties.xml)"/>
  +   <echo message="(You can turn validation off if you must, using ./properties.xml)"/>
   
      <!-- book.xml -->
      <echo message="Validating all book.xml instances ..."/>
  @@ -2208,6 +2211,24 @@
      </jing>
     </target>
   
  +  <!-- =================================================================== -->
  +  <!-- Validation of xdocs                                                 -->
  +  <!-- =================================================================== -->
  +  <!-- This only does documentation/xdocs/**.xml and does not attempt to do
  +       webapps, blocks, java, etc. because most of their xdocs do not bother
  +       to declare a ruleset. -->
  +  <target name="validate-xdocs"
  +          description="Validation of all core XML documentation"
  +          depends="prepare-docs"
  +          if="validate.xdocs">
  +   <echo message="Conducting validation of core XML documentation."/>
  +   <echo message="(You can turn validation off if you must, using ./properties.xml)"/>
  +   <xmlvalidate failonerror="true" lenient="no" warn="yes">
  +    <fileset dir="${build.context}/xdocs" includes="**/*.xml"
  +        excludes="drafts/*.xml,dictionary.xml,catalog-test.xml,ctwig/sample/**/*.xml"
  +    />
  +   </xmlvalidate>
  +  </target>
     
   </project>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org