tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk build.xml
Date Sun, 26 May 2002 21:43:36 GMT
jfclere     02/05/26 14:43:36

  Modified:    jk       build.xml
  Log:
  Add the tasks to build documentation for xml files.
  
  Revision  Changes    Path
  1.41      +56 -0     jakarta-tomcat-connectors/jk/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/build.xml,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- build.xml	9 May 2002 00:20:22 -0000	1.40
  +++ build.xml	26 May 2002 21:43:36 -0000	1.41
  @@ -11,6 +11,8 @@
       <property file="${user.home}/.build.properties"/>
   
       <property name="jk.build" location="${basedir}/build"/>
  +    <property name="build.docs" location="${basedir}/build/docs"/>
  +    <property name="source.docs" location="./xdocs"/>
   
       <!-- Compile options -->
       <property name="optimize" value="off" />
  @@ -64,6 +66,14 @@
                      file="${jmx.jar}" />
           <available property="jdk14.detect" 
                      classname="java.nio.MappedByteBuffer" />
  +        <!-- Check if we can find the XSLTProcessor class in the classpath -->
  +        <available
  +                   property="avail.xalan"
  +                   classname="org.apache.xalan.xslt.Process">
  +                   <!--
  +                   <classpath refid="classpath"/>
  +                    -->
  +        </available>
       </target>
   
       <target name="cpath" depends="guess_catalina40,guess_catalina41" />
  @@ -265,5 +275,51 @@
   
       <target name="clean-native">
       </target>
  +
  +  <!--
  +    Check if we found Xalan in our classpath. We require Xalan because it has
  +    some nifty functions that we use throughout the XSLT (and also because
  +    we want people to eat our own food, right?)
  +  -->
  +  <target
  +      name="docs.check"
  +      depends="prepare"
  +      description="Fail if we don't find Xalan"
  +      unless="avail.xalan">
  + 
  +    <!-- Just jump out -->
  +    <fail message="Cannot find the Apache Xalan XSLT processor"/>
  +  </target>                                                                     
  +
  +  <!--
  +    Generate documentation from the XML sources.
  +  -->
  +  <target
  +      name="docs"
  +      depends="docs.check"
  +      description="Create Documentation">
  + 
  +    <!-- Create the directory where we're going to store the docs -->
  +    <mkdir dir="${build.docs}"/>
  + 
  +    <!-- Add some style to our otherwise  utterly ugly XML files -->
  +    <style
  +        basedir="${source.docs}"
  +        destdir="${build.docs}"
  +        style="${source.docs}/style.xsl"
  +        includes="**.xml"/>
  + 
  +    <!-- Copy all relevant (non processed) files from the sources -->
  +    <copy
  +        todir="${build.docs}" >
  +      <fileset dir="${source.docs}">
  +        <exclude name="**.xml"/>
  +        <exclude name="**.xsl"/>
  +        <exclude name="**.idx"/>
  +        <exclude name="**/images/originals/**"/>
  +      </fileset>
  +    </copy>
  +  </target>                                                                     
  +
   
   </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message