summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2009-02-11 15:33:28 (EST)
committerpschonbac2009-02-11 15:33:28 (EST)
commit6c3ce5bfeb98c7ebdaac6991e97636f305be58bf (patch)
tree99f6a91a3e6e628d67da86cbc4c54c93ba9d18d8
parentcf965be575a36333f6213b906716f0c85a66f4df (diff)
downloadorg.eclipse.xpand-6c3ce5bfeb98c7ebdaac6991e97636f305be58bf.zip
org.eclipse.xpand-6c3ce5bfeb98c7ebdaac6991e97636f305be58bf.tar.gz
org.eclipse.xpand-6c3ce5bfeb98c7ebdaac6991e97636f305be58bf.tar.bz2
Target "clean" added
-rw-r--r--doc/org.eclipse.xpand.doc/build.xml332
1 files changed, 169 insertions, 163 deletions
diff --git a/doc/org.eclipse.xpand.doc/build.xml b/doc/org.eclipse.xpand.doc/build.xml
index 9682970..8d72b1b 100644
--- a/doc/org.eclipse.xpand.doc/build.xml
+++ b/doc/org.eclipse.xpand.doc/build.xml
@@ -1,164 +1,170 @@
-<!--
- This build script is an adoption of the build script being use for Eclipse.org Articles.
- Original authors: Chris Aniszczyk <zx@eclipsesource.com>,
- Lawrence Mandel <lmandel@ca.ibm.com>
-
- Other authors: Peter Friese <peter.friese@itemis.com>
--->
-
-<project name="eclipse.org article (docbook)" default="docbook2html" basedir=".">
-
- <!-- ========== Properties: User Defined Options ========================= -->
-
- <property name="eclipse.plugin.id" value="org.eclipse.xpand.doc" />
- <property name="eclipse.plugin.name" value="Xpand core documentation (Incubation)" />
- <property name="eclipse.plugin.provider" value="Eclipse.org" />
-
- <property name="src.dir" value="src/5.0/content"/>
- <property name="article.name" value="xpand_reference"/>
- <property name="article.stylesheet" value="src/styles/xslt/custom_eclipse.xsl"/>
-
- <property name="dest.dir" value="."/>
- <property name="download.dir" value="${java.io.tmpdir}${file.separator}downloads"/>
-
- <property name="docbook.version" value="1.73.2" />
- <property name="docbook.dir" value="${download.dir}${file.separator}docbook-xsl-${docbook.version}"/>
- <property name="docbookxsl.url" value="http://internap.dl.sourceforge.net/sourceforge/docbook/docbook-xsl-${docbook.version}.zip"/>
- <property name="fop.dir" value="${download.dir}${file.separator}fop-0.20.5"/>
- <property name="fop.url" value="http://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-0.20.5-bin.zip"/>
- <property name="jai.dir" value="ENTER_JAI_DIRECTORY"/>
-
- <property name="build.home" value="build"/>
-
- <!-- ========== Macro Definition =================================================== -->
-
- <macrodef name="docbook2pdf">
- <attribute name="source"/>
- <attribute name="target"/>
- <sequential>
- <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
- <classpath>
- <pathelement location="${fop.dir}${file.separator}build${file.separator}fop.jar" />
- <pathelement location="${fop.dir}${file.separator}lib${file.separator}avalon-framework-cvs-20020806.jar" />
- <pathelement location="${fop.dir}${file.separator}lib${file.separator}batik.jar" />
- <pathelement location="${jai.dir}${file.separator}lib${file.separator}jai_core.jar" />
- <pathelement location="${jai.dir}${file.separator}lib${file.separator}jai_codec.jar" />
- </classpath>
- </taskdef>
- <fop
- format="application/pdf"
- fofile="@{source}"
- outfile="@{target}"
- messagelevel="info"/>
- </sequential>
- </macrodef>
-
- <!-- ========== Targets =================================================== -->
-
- <target name="init">
- <mkdir dir="${download.dir}"/>
-
- <available file="${jai.dir}" property="jai.exists"/>
- <antcall target="notifyJAI"/>
- </target>
-
- <target name="notifyJAI" unless="jai.exists">
- <echo message="The Java Advanced Imaging (JAI) library is not available."/>
- <echo message="JAI is required if you want to use PNG images in your article."/>
- <echo message="You can download JAI from http://java.sun.com/products/java-media/jai/downloads/download-1_1_2_01.html."/>
- <echo message="Specify the JAI installation directory to the article build by providing the parameter jai.dir to this build script."/>
- </target>
-
- <target name="build-doc" depends="init, get-docbook-xsl, get-fop">
- <echo>Building Help...</echo>
- <antcall target="docbook2html"/>
- <antcall target="docbook2pdf"/>
- <antcall target="dist"/>
- </target>
-
- <target name="check-docbook">
- <available file="${download.dir}${file.separator}docbook.zip" property="hasDocbook"/>
- </target>
-
- <target name="check-fop">
- <available file="${download.dir}${file.separator}fop.zip" property="hasFOP"/>
- </target>
-
- <target name="get-docbook-xsl" description="Downloads docbook xsl" depends="check-docbook" unless="hasDocbook">
- <echo>Downloading DocBook XSL...</echo>
- <get dest="${download.dir}${file.separator}docbook.zip" src="${docbookxsl.url}"/>
- <unzip src="${download.dir}${file.separator}docbook.zip" dest="${download.dir}"/>
- </target>
-
- <target name="get-fop" description="Downloads FOP" depends="check-fop" unless="hasFOP">
- <echo>Downloading FOP...</echo>
- <get dest="${download.dir}${file.separator}fop.zip" src="${fop.url}"/>
- <unzip src="${download.dir}${file.separator}fop.zip" dest="${download.dir}"/>
- </target>
-
- <target name="docbook2html">
- <echo>Converting article to HTML...</echo>
- <delete file="${dest.dir}${file.separator}${article.name}.html"/>
- <xslt in="${src.dir}${file.separator}${article.name}.xml" extension="xml" out="${dest.dir}${file.separator}${article.name}.html" style="${article.stylesheet}">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
- </factory>
- <xmlcatalog>
- <entity
- publicId="docbook.xsl"
- location="${docbook.dir}${file.separator}html${file.separator}docbook.xsl"/>
- <entity
- publicId="eclipse.xsl"
- location="${docbook.dir}${file.separator}eclipse${file.separator}eclipse.xsl"/>
- </xmlcatalog>
- <param name="header.rule" expression="1" />
- <param name="admon.graphics.extension" expression=".gif"/>
- <param name="admon.textlabel" expression="0"/>
- <param name="ulink.target" expression="_new"/>
- <param name="eclipse.plugin.id" expression="${eclipse.plugin.id}" />
- <param name="eclipse.plugin.name" expression="${eclipse.plugin.name}" />
- <param name="eclipse.plugin.provider" expression="${eclipse.plugin.provider}" />
- </xslt>
- </target>
-
- <target name="docbook2pdf">
- <echo>Converting article to PDF...</echo>
-
- <delete file="${dest.dir}${file.separator}${article.name}.pdf"/>
- <delete file="${dest.dir}${file.separator}${article.name}.fo"/>
- <xslt in="${src.dir}${file.separator}${article.name}.xml" extension="xml" out="${dest.dir}${file.separator}${article.name}.fo" style="${docbook.dir}${file.separator}fo${file.separator}docbook.xsl">
- <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
- <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
- </factory>
- <xmlcatalog>
- <entity
- publicId="docbook.xsl"
- location="${docbook.dir}${file.separator}fo${file.separator}docbook.xsl"/>
- </xmlcatalog>
- <param name="generate.toc" expression="book toc" />
- <param name="show.comments" expression="0" />
- <param name="header.rule" expression="1" />
- <param name="admon.graphics.extension" expression=".gif"/>
- <param name="admon.textlabel" expression="0"/>
- <param name="admon.graphics" expression="1"/>
- </xslt>
-
- <docbook2pdf
- source="${dest.dir}${file.separator}${article.name}.fo"
- target="${dest.dir}${file.separator}${article.name}.pdf"/>
-
- <!-- Remove the resulting formatting object. This object isn't necessary in the
- result of this build. -->
- <delete file="${dest.dir}${file.separator}${article.name}.fo"/>
- </target>
-
- <target name="dist">
- <echo>Building article zip file...</echo>
- <delete file="${dest.dir}${file.separator}${article.name}.zip"/>
- <zip basedir="${dest.dir}" destfile="${dest.dir}${file.separator}${article.name}.zip"
- excludes="${article.name}.fo, ${article.name}.zip, .project">
- </zip>
- <echo>If you're done with your article, please post the zip file on the related bugzilla entry.</echo>
- </target>
-
+<!--
+ This build script is an adoption of the build script being use for Eclipse.org Articles.
+ Original authors: Chris Aniszczyk <zx@eclipsesource.com>,
+ Lawrence Mandel <lmandel@ca.ibm.com>
+
+ Other authors: Peter Friese <peter.friese@itemis.com>
+-->
+
+<project name="org.eclipse.xpand.doc" default="docbook2html" basedir=".">
+
+ <!-- ========== Properties: User Defined Options ========================= -->
+
+ <property name="eclipse.plugin.id" value="org.eclipse.xpand.doc" />
+ <property name="eclipse.plugin.name" value="Xpand core documentation (Incubation)" />
+ <property name="eclipse.plugin.provider" value="Eclipse.org" />
+
+ <property name="src.dir" value="src/5.0/content"/>
+ <property name="article.name" value="xpand_reference"/>
+ <property name="article.stylesheet" value="src/styles/xslt/custom_eclipse.xsl"/>
+
+ <property name="dest.dir" value="."/>
+ <property name="download.dir" value="${java.io.tmpdir}${file.separator}downloads"/>
+
+ <property name="docbook.version" value="1.73.2" />
+ <property name="docbook.dir" value="${download.dir}${file.separator}docbook-xsl-${docbook.version}"/>
+ <property name="docbookxsl.url" value="http://internap.dl.sourceforge.net/sourceforge/docbook/docbook-xsl-${docbook.version}.zip"/>
+ <property name="fop.dir" value="${download.dir}${file.separator}fop-0.20.5"/>
+ <property name="fop.url" value="http://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-0.20.5-bin.zip"/>
+ <property name="jai.dir" value="ENTER_JAI_DIRECTORY"/>
+
+ <property name="build.home" value="build"/>
+
+ <!-- ========== Macro Definition =================================================== -->
+
+ <macrodef name="docbook2pdf">
+ <attribute name="source"/>
+ <attribute name="target"/>
+ <sequential>
+ <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
+ <classpath>
+ <pathelement location="${fop.dir}${file.separator}build${file.separator}fop.jar" />
+ <pathelement location="${fop.dir}${file.separator}lib${file.separator}avalon-framework-cvs-20020806.jar" />
+ <pathelement location="${fop.dir}${file.separator}lib${file.separator}batik.jar" />
+ <pathelement location="${jai.dir}${file.separator}lib${file.separator}jai_core.jar" />
+ <pathelement location="${jai.dir}${file.separator}lib${file.separator}jai_codec.jar" />
+ </classpath>
+ </taskdef>
+ <fop
+ format="application/pdf"
+ fofile="@{source}"
+ outfile="@{target}"
+ messagelevel="info"/>
+ </sequential>
+ </macrodef>
+
+ <!-- ========== Targets =================================================== -->
+
+ <target name="init">
+ <mkdir dir="${download.dir}"/>
+
+ <available file="${jai.dir}" property="jai.exists"/>
+ <antcall target="notifyJAI"/>
+ </target>
+
+ <target name="notifyJAI" unless="jai.exists">
+ <echo message="The Java Advanced Imaging (JAI) library is not available."/>
+ <echo message="JAI is required if you want to use PNG images in your article."/>
+ <echo message="You can download JAI from http://java.sun.com/products/java-media/jai/downloads/download-1_1_2_01.html."/>
+ <echo message="Specify the JAI installation directory to the article build by providing the parameter jai.dir to this build script."/>
+ </target>
+
+ <target name="build-doc" depends="init, get-docbook-xsl, get-fop">
+ <echo>Building Help...</echo>
+ <antcall target="docbook2html"/>
+ <antcall target="docbook2pdf"/>
+ <antcall target="dist"/>
+ </target>
+
+ <target name="check-docbook">
+ <available file="${download.dir}${file.separator}docbook.zip" property="hasDocbook"/>
+ </target>
+
+ <target name="check-fop">
+ <available file="${download.dir}${file.separator}fop.zip" property="hasFOP"/>
+ </target>
+
+ <target name="get-docbook-xsl" description="Downloads docbook xsl" depends="check-docbook" unless="hasDocbook">
+ <echo>Downloading DocBook XSL...</echo>
+ <get dest="${download.dir}${file.separator}docbook.zip" src="${docbookxsl.url}"/>
+ <unzip src="${download.dir}${file.separator}docbook.zip" dest="${download.dir}"/>
+ </target>
+
+ <target name="get-fop" description="Downloads FOP" depends="check-fop" unless="hasFOP">
+ <echo>Downloading FOP...</echo>
+ <get dest="${download.dir}${file.separator}fop.zip" src="${fop.url}"/>
+ <unzip src="${download.dir}${file.separator}fop.zip" dest="${download.dir}"/>
+ </target>
+
+ <target name="docbook2html">
+ <echo>Converting article to HTML...</echo>
+ <delete file="${dest.dir}${file.separator}${article.name}.html"/>
+ <xslt in="${src.dir}${file.separator}${article.name}.xml" extension="xml" out="${dest.dir}${file.separator}${article.name}.html" style="${article.stylesheet}">
+ <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
+ <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
+ </factory>
+ <xmlcatalog>
+ <entity
+ publicId="docbook.xsl"
+ location="${docbook.dir}${file.separator}html${file.separator}docbook.xsl"/>
+ <entity
+ publicId="eclipse.xsl"
+ location="${docbook.dir}${file.separator}eclipse${file.separator}eclipse.xsl"/>
+ </xmlcatalog>
+ <param name="header.rule" expression="1" />
+ <param name="admon.graphics.extension" expression=".gif"/>
+ <param name="admon.textlabel" expression="0"/>
+ <param name="ulink.target" expression="_new"/>
+ <param name="eclipse.plugin.id" expression="${eclipse.plugin.id}" />
+ <param name="eclipse.plugin.name" expression="${eclipse.plugin.name}" />
+ <param name="eclipse.plugin.provider" expression="${eclipse.plugin.provider}" />
+ </xslt>
+ </target>
+
+ <target name="docbook2pdf">
+ <echo>Converting article to PDF...</echo>
+
+ <delete file="${dest.dir}${file.separator}${article.name}.pdf"/>
+ <delete file="${dest.dir}${file.separator}${article.name}.fo"/>
+ <xslt in="${src.dir}${file.separator}${article.name}.xml" extension="xml" out="${dest.dir}${file.separator}${article.name}.fo" style="${docbook.dir}${file.separator}fo${file.separator}docbook.xsl">
+ <factory name="org.apache.xalan.processor.TransformerFactoryImpl">
+ <attribute name="http://xml.apache.org/xalan/features/optimize" value="true"/>
+ </factory>
+ <xmlcatalog>
+ <entity
+ publicId="docbook.xsl"
+ location="${docbook.dir}${file.separator}fo${file.separator}docbook.xsl"/>
+ </xmlcatalog>
+ <param name="generate.toc" expression="book toc" />
+ <param name="show.comments" expression="0" />
+ <param name="header.rule" expression="1" />
+ <param name="admon.graphics.extension" expression=".gif"/>
+ <param name="admon.textlabel" expression="0"/>
+ <param name="admon.graphics" expression="1"/>
+ </xslt>
+
+ <docbook2pdf
+ source="${dest.dir}${file.separator}${article.name}.fo"
+ target="${dest.dir}${file.separator}${article.name}.pdf"/>
+
+ <!-- Remove the resulting formatting object. This object isn't necessary in the
+ result of this build. -->
+ <delete file="${dest.dir}${file.separator}${article.name}.fo"/>
+ </target>
+
+ <!-- =================================
+ target: clean
+ ================================= -->
+ <target name="clean" description="Cleanup task">
+ </target>
+
+ <target name="dist">
+ <echo>Building article zip file...</echo>
+ <delete file="${dest.dir}${file.separator}${article.name}.zip"/>
+ <zip basedir="${dest.dir}" destfile="${dest.dir}${file.separator}${article.name}.zip"
+ excludes="${article.name}.fo, ${article.name}.zip, .project">
+ </zip>
+ <echo>If you're done with your article, please post the zip file on the related bugzilla entry.</echo>
+ </target>
+
</project> \ No newline at end of file