forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/forrest-shbat forrest.build.xml
Date Thu, 31 Oct 2002 05:19:58 GMT
jefft       2002/10/30 21:19:58

  Modified:    src/resources/forrest-shbat forrest.build.xml
  Log:
  - Add @description so 'validate' appears in the target list
  - Allow users to override which files get validated
  
  Revision  Changes    Path
  1.4       +7 -4      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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- forrest.build.xml	30 Oct 2002 15:52:06 -0000	1.3
  +++ forrest.build.xml	31 Oct 2002 05:19:57 -0000	1.4
  @@ -82,6 +82,8 @@
       <property name="project.classes-dir" value="${project.content-dir}/classes" />
   
       <property name="forrest.validate.failonerror" value="true" />
  +    <property name="forrest.validate.includes" value="*.x*"/>
  +    <property name="forrest.validate.excludes" value=""/>
   
       <!-- checks for presence of required classes and/or resources -->
       <property name="tools.jar"           location="${java.home}/../lib/tools.jar"/>
  @@ -587,7 +589,8 @@
     <!-- ===============================================================
          Validates all XML documents in the projects-context dir.
          =============================================================== -->
  - <target name="validate" depends="init-props, examine-proj">
  + <target name="validate" depends="init-props, examine-proj"
  +   description="Validates XML doc files in the project">
      <xmlvalidate failonerror="${forrest.validate.failonerror}" lenient="no" warn="yes">
         <xmlcatalog>
           <catalogfiles dir="${project.schema-dir}">
  @@ -597,9 +600,9 @@
             <include name="catalog" />
           </catalogfiles>
         </xmlcatalog>
  -      <fileset dir="${project.xdocs-dir}">
  -        <include name="*.x*" />
  -        <exclude name="*build.xml"/>
  +      <fileset dir="${project.xdocs-dir}"
  +        includes="${forrest.validate.includes}"
  +        excludes="${forrest.validate.excludes}">
         </fileset>
       </xmlvalidate>
     </target>
  
  
  

Mime
View raw message