You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by ch...@apache.org on 2003/08/01 14:32:13 UTC

cvs commit: xml-forrest/src/resources/forrest-shbat forrest.build.xml

cheche      2003/08/01 05:32:13

  Modified:    src/resources/forrest-shbat forrest.build.xml
  Log:
  Added a validate-site to validate *.xml files created by forrest
  
  Revision  Changes    Path
  1.82      +17 -1     xml-forrest/src/resources/forrest-shbat/forrest.build.xml
  
  Index: forrest.build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/forrest-shbat/forrest.build.xml,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- forrest.build.xml	30 Jul 2003 16:35:46 -0000	1.81
  +++ forrest.build.xml	1 Aug 2003 12:32:13 -0000	1.82
  @@ -806,6 +806,22 @@
       validate-skinconf, validate-sitemap, validate-skins, validate-skinchoice,
       validate-stylesheets"  description="Validates XML doc files in the project"/>
   
  +  <target name="validate-site" depends="validation-props" >
  +    <xmlvalidate failonerror="${forrest.validate.site.failonerror}" lenient="no" warn="yes">
  +      <xmlcatalog>
  +        <catalogpath>
  +          <pathelement
  +            location="${forrest.home}/context/resources/schema/catalog.xcat"/>
  +          <pathelement location="${project.catalog}"/>
  +        </catalogpath>
  +      </xmlcatalog>
  +      <fileset dir="${project.site-dir}"
  +        includes="${forrest.validate.xdocs.includes}"
  +        excludes="${forrest.validate.xdocs.excludes}"/>
  +    </xmlvalidate>
  +    <echo message="...validated site"/>
  +  </target>
  +
     <target name="validate-xdocs" depends="validation-props" if="validate.xdocs">
       <xmlvalidate failonerror="${forrest.validate.xdocs.failonerror}" lenient="no" warn="yes">
         <xmlcatalog>