avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon/tools converter.xml
Date Sun, 16 Jun 2002 12:33:05 GMT
donaldp     2002/06/16 05:33:05

  Added:       tools    converter.xml
  Log:
  Add simple script to help with converting documentation between anakia and coon formats
  
  Revision  Changes    Path
  1.1                  jakarta-avalon/tools/converter.xml
  
  Index: converter.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="Cocoon2Anakia Converter" default="convert" basedir=".">
  
      <property name="src.dir" location="${xdocs.dir}"/>
      <property name="dest.dir" value="temp"/>
      <property name="converter.xsl" location="cocoon2anakia.xsl"/>
  
      <target name="prepare" unless="xdocs.dir">
          <echo message="Need to specify absolute path in xdocs.dir"/>
          <echo message="property similar to"/>
          <echo message="ant -f converter.xml /opt/projects/jakarta-avalon-excalibur/bzip/src/xdocs"/>
          <fail/>
      </target>
  
      <target name="convert" depends="prepare">
  
          <mkdir dir="${dest.dir}" />
  
          <style style="${converter.xsl}"
  	       basedir="${src.dir}"
  	       outputtype="xml"
  	       extension=".xml"
                 destdir="${dest.dir}">
            <exclude name="**/book.xml"/>
            <include name="**/*.xml"/>
          </style>
  
        </target>
  
      <target name="update" depends="convert">
          <copy todir="${src.dir}">
            <fileset dir="${dest.dir}"/>
          </copy>
          <delete dir="${dest.dir}"/>
      </target>
  
  </project>
  
  
  

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


Mime
View raw message