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 Sun, 07 Sep 2003 13:48:58 GMT
jefft       2003/09/07 06:48:58

  Modified:    src/resources/forrest-shbat forrest.build.xml
  Log:
  If any *-0.5.xmap sitemap is defined, only validate *-0.5.xmap.
  
  Revision  Changes    Path
  1.93      +21 -3     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.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- forrest.build.xml	7 Sep 2003 04:16:32 -0000	1.92
  +++ forrest.build.xml	7 Sep 2003 13:48:58 -0000	1.93
  @@ -173,7 +173,8 @@
           <isset property="sitemap.present"/>
         </and>
       </condition>
  -    <property name="forrest.validate.sitemap.includes" value="*.xmap"/>
  +
  +    <property name="forrest.validate.sitemap.includes" value=""/>
       <property name="forrest.validate.sitemap.excludes" value=""/>
       <property name="forrest.validate.sitemap.failonerror"
         value="${forrest.validate.failonerror}" />
  @@ -875,11 +876,28 @@
   
     <target name="validate-sitemap" depends="validation-props"
       if="validate.sitemap">
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/forrest-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/aggregate-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/dtd-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/faq-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/forrest-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/issues-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/linkmap-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/menu-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/profiler-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/raw-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/resources-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/revisions-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/sitemap-${version}.xmap"
type="file"/>
  +    <available property="version-specific-sitemap" file="${project.sitemap-dir}/status-${version}.xmap"
type="file"/>
   
       <jing rngfile="${forrest.home}/context/resources/schema/relaxng/sitemap-v06.rng">
         <fileset dir="${project.content-dir}"
           includes="${forrest.validate.sitemap.includes}"
  -        excludes="${forrest.validate.sitemap.excludes}"/>
  +        excludes="${forrest.validate.sitemap.excludes}">
  +        <include name="*.xmap" unless="version-specific-sitemap"/>
  +        <include name="*-${version}.xmap" if="version-specific-sitemap"/>
  +      </fileset>
       </jing>
       <echo message="...validated sitemap"/>
     </target>
  
  
  

Mime
View raw message