commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka build.xml
Date Wed, 23 Jan 2002 03:20:04 GMT
dion        02/01/22 19:20:04

  Modified:    latka    build.xml
  Log:
  Changed doc generation to use docbook->site->html
  
  Revision  Changes    Path
  1.17      +43 -4     jakarta-commons/latka/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/build.xml,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- build.xml	19 Jan 2002 07:57:19 -0000	1.16
  +++ build.xml	23 Jan 2002 03:20:03 -0000	1.17
  @@ -1,4 +1,4 @@
  -<!-- $Id: build.xml,v 1.16 2002/01/19 07:57:19 dion Exp $ -->
  +<!-- $Id: build.xml,v 1.17 2002/01/23 03:20:03 dion Exp $ -->
   <project name="commons-latka" default="build-java" basedir=".">
   
      <!-- patternset describing files to be copied from the doc directory -->
  @@ -71,6 +71,14 @@
         <available property="available-src-java" file="${source.src.java}"/> <!--
does this module have java src? -->      
         <available property="available-src-test" file="${source.src.test}"/> <!--
does this module have test src? -->      
   
  +      <!-- properties for xdocs creation -->
  +      <property name="dest.xdocs" value="${dest}/xdocs" />
  +      <property name="source.xdocs" value="${source}/xdocs"/>
  +      <property name="source.xsl.converter.docbook"
  +                  value="${basedir}/xsl/site/docbook2document.xsl"/>
  +      <property name="source.xsl.converter.site"
  +                  value="${basedir}/xsl/site/site.xsl"/>
  +
         <!-- now combine the classpaths -->
         <path id="classpath">
             <pathelement path="${cp}"/>
  @@ -190,9 +198,40 @@
      </target>
      
      <target name="doc-xslt" depends="init">
  -     <style basedir="${source.doc}" destdir="${dest.doc}"
  -       extension=".html" style="${source.doc.xsl}"
  -       includes="*.xml"/>
  +        <!--  generate html from sourceforge docbook stylesheets
  +        <style basedir="${source.doc}" destdir="${dest.doc}"
  +               extension=".html" style="${source.doc.xsl}"
  +               includes="*.xml"/>
  +        -->
  +        <!-- generate html from docbook via site.xsl -->
  +        <mkdir dir="${dest.xdocs}/stylesheets"/>
  +        
  +        <!-- generate xdocs from docbook -->
  +        <style basedir="${source.doc}"
  +               destdir="${dest.xdocs}"
  +               extension=".xml"
  +               style="${source.xsl.converter.docbook}"
  +               includes="**/*.xml"/>
  +               
  +        <!-- copy across project.xml and site.xsl -->
  +        <copy todir="${dest.xdocs}/stylesheets">
  +            <fileset dir="${source.xdocs}">
  +                <include name="project.xml"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${dest.xdocs}/stylesheets">    
  +            <fileset dir="${basedir}/xsl/site">
  +                <include name="site.xsl"/>
  +            </fileset>
  +        </copy>
  +        
  +        <!-- transform xdocs to html -->
  +        <style basedir="${dest.xdocs}"
  +               destdir="${dest.doc}"
  +               extension=".html"
  +               style="${dest.xdocs}/stylesheets/site.xsl"
  +               includes="*.xml"/>
  +
      </target>
   
      <!-- ######################################################### -->
  
  
  

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


Mime
View raw message