You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/06/16 14:33:05 UTC
cvs commit: jakarta-avalon/tools converter.xml
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>