forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject svn commit: rev 20273 - xml/forrest/trunk/src/core/targets
Date Sun, 23 May 2004 23:19:15 GMT
Author: nicolaken
Date: Sun May 23 16:19:14 2004
New Revision: 20273

Modified:
   xml/forrest/trunk/src/core/targets/validate.xml
Log:
Revert changes in validation to reenamble skinconf validation before the decided skinconf
format changes.

Modified: xml/forrest/trunk/src/core/targets/validate.xml
==============================================================================
--- xml/forrest/trunk/src/core/targets/validate.xml	(original)
+++ xml/forrest/trunk/src/core/targets/validate.xml	Sun May 23 16:19:14 2004
@@ -16,17 +16,14 @@
 -->
 
 <project default="validate" basedir="." name="validate">
-<!--
+
   <target name="validate" depends="validation-props, validate-xdocs,
-    validate-sitemap, validate-skins, validate-skinchoice,
+    validate-skinconf, validate-sitemap, validate-skins, validate-skinchoice,
     validate-stylesheets"  description="Validates XML doc files in the project"/>
--->   
     
-  <target name="validate"/>
-        
-             
   <target name="validation-props" depends="examine-proj">
     <!-- Validation flags -->
+
     <property name="forrest.validate" value="true" />
     <condition property="validate">
       <istrue value="${forrest.validate}"/>
@@ -34,18 +31,83 @@
     <property name="forrest.validate.failonerror" value="true" />
     <property name="forrest.validate.includes" value="**/*"/>
     <property name="forrest.validate.excludes" value=""/>
+
+    <property name="forrest.validate.xdocs" value="${forrest.validate}"/>
+    <condition property="validate.xdocs">
+      <and>
+        <istrue value="${forrest.validate.xdocs}"/>
+        <isset property="xdocs.present"/>
+      </and>
+    </condition>
     <property name="forrest.validate.xdocs.includes" value="**/*.xml"/>
     <property name="forrest.validate.xdocs.excludes" value="site.xml,.*.swp"/>
+    <property name="forrest.validate.xdocs.failonerror"
+      value="${forrest.validate.failonerror}" />
+
+    <property name="forrest.validate.skinconf" value="${forrest.validate}"/>
+    <condition property="validate.skinconf">
+      <and>
+        <istrue value="${forrest.validate.skinconf}"/>
+        <isset property="skinconf.present"/>
+      </and>
+    </condition>
+    <basename file="${skinconf}" property="skinconf-file"/>
     <property name="forrest.validate.skinconf.includes" value="${skinconf-file}"/>
     <property name="forrest.validate.skinconf.excludes" value=""/>
+    <property name="forrest.validate.skinconf.failonerror"
+      value="${forrest.validate.failonerror}" />
+
+    <property name="forrest.validate.sitemap" value="${forrest.validate}"/>
+    <condition property="validate.sitemap">
+      <and>
+        <istrue value="${forrest.validate.sitemap}"/>
+        <isset property="sitemap.present"/>
+      </and>
+    </condition>
+
+    <property name="forrest.validate.sitemap.includes" value=""/>
+    <property name="forrest.validate.sitemap.excludes" value=""/>
+    <property name="forrest.validate.sitemap.failonerror"
+      value="${forrest.validate.failonerror}" />
+
+    <property name="forrest.validate.stylesheets" value="${forrest.validate}"/>
+    <condition property="validate.stylesheets">
+      <and>
+        <istrue value="${forrest.validate.stylesheets}"/>
+        <isset property="stylesheets.present"/>
+      </and>
+    </condition>
     <property name="forrest.validate.stylesheets.includes" value="**/*.xsl"/>
-    <property name="forrest.validate.skinconf.excludes" value=""/>
+    <property name="forrest.validate.stylesheets.excludes" value=""/>
+    <property name="forrest.validate.stylesheets.failonerror"
+      value="${forrest.validate.failonerror}" />
+
+    <property name="forrest.validate.skins" value="${forrest.validate}"/>
+    <condition property="validate.skins">
+      <and>
+        <istrue value="${forrest.validate.skins}"/>
+        <isset property="skins.present"/>
+      </and>
+    </condition>
     <property name="forrest.validate.skins.includes" value="**/*"/>
     <property name="forrest.validate.skins.excludes" value="**/*.xsl"/>
+    <property name="forrest.validate.skins.failonerror"
+      value="${forrest.validate.failonerror}" />
+
+    <property name="forrest.validate.skins.stylesheets" value="${forrest.validate.skins}"/>
+    <condition property="validate.skins.stylesheets">
+      <and>
+        <istrue value="${forrest.validate.skins.stylesheets}"/>
+        <isset property="skins.present"/>
+      </and>
+    </condition>
     <property name="forrest.validate.skins.stylesheets.includes" value="**/*.xsl"/>
     <property name="forrest.validate.skins.stylesheets.excludes" value=""/>
-  </target>    
-        
+    <property name="forrest.validate.skins.stylesheets.failonerror"
+      value="${forrest.validate.skins.failonerror}" />
+  </target>
+    
+    
   <target name="validate-site" depends="load-project-props">
     <condition property="forrest.validate.skinconf.disable-xml-link">
       <and>
@@ -75,8 +137,8 @@
     <echo message="...validated site"/>
   </target>
 
-  <target name="validate-xdocs" depends="validation-props">
-    <xmlvalidate failonerror="${forrest.validate.failonerror}" lenient="no" warn="yes">
+  <target name="validate-xdocs" depends="validation-props" if="validate.xdocs">
+    <xmlvalidate failonerror="${forrest.validate.xdocs.failonerror}" lenient="no" warn="yes">
       <attribute name="http://apache.org/xml/features/validation/dynamic"  value="true"/>
       <xmlcatalog refid="fcatalog" />
       <fileset dir="${xdocs-dir}"
@@ -86,6 +148,18 @@
     <echo message="...validated xdocs"/>
   </target>
 
+  <target name="validate-skinconf" depends="validation-props"
+          if="validate.skinconf">
+    <xmlvalidate failonerror="${forrest.validate.skinconf.failonerror}" 
+                 lenient="no" warn="yes">
+      <xmlcatalog refid="fcatalog" />
+      <fileset dir="${content-dir}"
+               includes="${forrest.validate.skinconf.includes}"
+               excludes="${forrest.validate.skinconf.excludes}"/>
+    </xmlvalidate>
+    <echo message="...validated skinconf"/>
+  </target>
+
   <target name="validate-sitemap" depends="validation-props"
     if="validate.sitemap">
     <available property="version-specific-sitemap" file="${sitemap-dir}/forrest-${version}.xmap"
type="file"/>
@@ -114,7 +188,8 @@
     <echo message="...validated sitemap"/>
   </target>
 
-  <target name="validate-stylesheets" depends="validation-props">
+  <target name="validate-stylesheets" depends="validation-props"
+    if="validate.stylesheets">
     <jing rngfile="${forrest.home}/context/resources/schema/relaxng/xslt.rng">
       <fileset dir="${stylesheets-dir}"
         includes="${forrest.validate.stylesheets.includes}"
@@ -125,7 +200,8 @@
 
   <target name="validate-skins" depends="validate-skins-stylesheets"/>
 
-  <target name="validate-skins-stylesheets" depends="validation-props">
+  <target name="validate-skins-stylesheets" depends="validation-props"
+    if="validate.skins.stylesheets">
     <jing rngfile="${forrest.home}/context/resources/schema/relaxng/xslt.rng">
       <fileset dir="${skins-dir}"
         includes="${forrest.validate.skins.stylesheets.includes}"

Mime
View raw message