[Mathlib-commitlog] SF.net SVN: mathlib:[682] JMathLib/trunk/build.xml
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-11 14:54:47
|
Revision: 682
http://mathlib.svn.sourceforge.net/mathlib/?rev=682&view=rev
Author: st_mueller
Date: 2009-01-11 14:54:38 +0000 (Sun, 11 Jan 2009)
Log Message:
-----------
added new ant targets for documentation
Modified Paths:
--------------
JMathLib/trunk/build.xml
Modified: JMathLib/trunk/build.xml
===================================================================
--- JMathLib/trunk/build.xml 2009-01-11 14:50:36 UTC (rev 681)
+++ JMathLib/trunk/build.xml 2009-01-11 14:54:38 UTC (rev 682)
@@ -145,20 +145,34 @@
<!-- Copy image-files to handbook directory -->
<target name = "imageFiles">
- <copy todir="${dist.dir}/handbook">
- <fileset dir="${doc.src}">
- <include name="**/*.gif" />
- <include name="**/*.jpg" />
- <include name="**/*.svg" />
- </fileset>
- </copy>
- <copy todir="${upload.dir}/handbook_php/">
- <fileset dir="${doc.src}">
- <include name="**/*.gif" />
- <include name="**/*.jpg" />
- <include name="**/*.svg" />
- </fileset>
- </copy>
+ <copy todir="${dist.dir}/handbook">
+ <fileset dir="${doc.src}">
+ <include name="**/*.gif" />
+ <include name="**/*.jpg" />
+ <include name="**/*.svg" />
+ </fileset>
+ </copy>
+ <copy todir="${upload.dir}/handbook_php/">
+ <fileset dir="${doc.src}">
+ <include name="**/*.gif" />
+ <include name="**/*.jpg" />
+ <include name="**/*.svg" />
+ </fileset>
+ </copy>
+ <copy todir="${upload.dir}/handbook_epub/">
+ <fileset dir="${doc.src}">
+ <include name="**/*.gif" />
+ <include name="**/*.jpg" />
+ <include name="**/*.svg" />
+ </fileset>
+ </copy>
+ <copy todir="${upload.dir}/handbook_eclipse/">
+ <fileset dir="${doc.src}">
+ <include name="**/*.gif" />
+ <include name="**/*.jpg" />
+ <include name="**/*.svg" />
+ </fileset>
+ </copy>
</target>
<!-- xml to php -->
@@ -205,7 +219,7 @@
<target name="xmltofo" description="convert xml to fo" depends="">
<java jar="libs/saxon.jar" fork="true">
<arg line="-o doc/src/doc.fo doc/src/doc.xml
- doc/DocBook/xsl/fo/docbook2.xsl" />
+ doc/DocBook/xsl/fo/docbook.xsl" />
<arg value='paper.type="A4"' />
<arg value='chunk.section.depth="0"' />
<arg value='chunk.first.sections="0"' />
@@ -225,24 +239,75 @@
</java>
</target>
- <!-- zip doc files -->
+ <!-- xml to epub -->
+ <target name="xmltoepub" description="convert xml to epub" depends="">
+ <java jar="libs/saxon.jar" fork="true">
+ <arg value='doc/src/doc.xml' />
+ <arg value='doc/DocBook/xsl/epub/docbook.xsl' />
+ <arg value="base.dir=${upload.dir}/handbook_epub/" />
+ <arg value='chunk.section.depth="1"' />
+ <arg value='chunk.first.sections="0"' />
+ <arg value='generate.section.toc.level="0"' />
+ <arg value='toc.section.depth="1"' />
+ <arg value='toc.max.depth="3"' />
+ <arg value='generate.index="1"' />
+ <arg value='use.id.as.filename="1"' />
+ <arg value='html.extra.head.links="0"' />
+ <arg value='html.stylesheet="../../formats.css"' />
+ <arg value='ignore.image.scaling="1"' />
+ </java>
+ </target>
+
+ <!-- xml to eclipse -->
+ <target name="xmltoeclipse" description="convert xml to eclipse" depends="">
+ <java jar="libs/saxon.jar" fork="true">
+ <arg value='doc/src/doc.xml' />
+ <arg value='doc/DocBook/xsl/eclipse/eclipse.xsl' />
+ <arg value="base.dir=${upload.dir}/handbook_eclipse/" />
+ <arg value='chunk.section.depth="1"' />
+ <arg value='chunk.first.sections="0"' />
+ <arg value='generate.section.toc.level="0"' />
+ <arg value='toc.section.depth="1"' />
+ <arg value='toc.max.depth="3"' />
+ <arg value='generate.index="1"' />
+ <arg value='use.id.as.filename="1"' />
+ <arg value='html.extra.head.links="0"' />
+ <arg value='html.stylesheet="../../formats.css"' />
+ <arg value='ignore.image.scaling="1"' />
+ </java>
+ </target>
+
+ <!-- zip doc files -->
<target name = "zip_docs" description="zip doc files" depends="">
- <zip zipfile="${upload.dir}/${final.name}_docs_php.zip" >
- <zipfileset dir="${upload.dir}/handbook_php" >
- <include name="**"/>
- </zipfileset>
- </zip>
- <zip zipfile="${upload.dir}/${final.name}_docs_html.zip" >
- <zipfileset dir="${dist.dir}/handbook/" >
- <include name="**"/>
- </zipfileset>
- </zip>
+ <zip zipfile="${upload.dir}/${final.name}_docs_php.zip" >
+ <zipfileset dir="${upload.dir}/handbook_php" >
+ <include name="**"/>
+ </zipfileset>
+ </zip>
+
+ <zip zipfile="${upload.dir}/${final.name}_docs_html.zip" >
+ <zipfileset dir="${dist.dir}/handbook/" >
+ <include name="**"/>
+ </zipfileset>
+ </zip>
+
+ <zip zipfile="${upload.dir}/${final.name}_docs_epub.zip" >
+ <zipfileset dir="${upload.dir}/handbook_epub" >
+ <include name="**"/>
+ </zipfileset>
+ </zip>
+
+ <zip zipfile="${upload.dir}/${final.name}_docs_eclipse.zip" >
+ <zipfileset dir="${upload.dir}/handbook_eclipse" >
+ <include name="**"/>
+ </zipfileset>
+ </zip>
</target>
<!-- AllDocs: create all documenation files -->
<target name="alldocs" description="all doc targets"
depends="functiondocs, imageFiles, xmltophp,
- xmltohtml, xmltofo, fotopdf, zip_docs">
+ xmltohtml, xmltofo, fotopdf, xmltoepub, xmltoeclipse, zip_docs">
</target>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|