2011-05-02 20:10:49 +02:00
|
|
|
<?xml version="1.0"?>
|
2013-02-12 12:54:04 +01:00
|
|
|
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
|
2011-05-02 20:10:49 +02:00
|
|
|
|
2015-08-24 09:45:25 +02:00
|
|
|
<!-- C:\JAVA-DEV\apache-fop-1.1 -->
|
|
|
|
|
|
|
|
<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="C:\\JAVA-DEV\\apache-fop-1.1">
|
|
|
|
<include name="build/*.jar" />
|
|
|
|
<include name="lib/*.jar" />
|
|
|
|
</fileset>
|
|
|
|
</classpath>
|
|
|
|
</taskdef>
|
|
|
|
|
|
|
|
<!-- External Syntax Higlighter for docbook xsl -->
|
|
|
|
<path id="xslthl.path">
|
|
|
|
<pathelement location="C:\\JAVA-DEV\\xslthl-2.1.0\\xslthl-2.1.0.jar" />
|
|
|
|
</path>
|
|
|
|
|
|
|
|
|
2011-05-02 20:10:49 +02:00
|
|
|
<property name="current-loc" location="." />
|
|
|
|
<property name="workspace" location=".." />
|
|
|
|
<property name="htmldir" value="${current-loc}/doc/html" />
|
2015-08-24 09:45:25 +02:00
|
|
|
<property name="docbookdir" value="D:/DATA/JAVA-DEV/docbook-xsl-1.78.1/" />
|
|
|
|
|
|
|
|
<property name="fo.stylesheet" value="${docbookdir}/fo/docbook.xsl" />
|
|
|
|
<property name="fo.stylesheet.hl" value="${docbookdir}/fo/docbook.xsl" />
|
|
|
|
<property name="html.stylesheet.hl" value="${docbookdir}/html/docbook-with-highlighting.xsl" />
|
|
|
|
<property name="html.chunked.stylesheet.hl" value="${docbookdir}/html/docbook-chunked-with-highlighting.xsl" />
|
|
|
|
<property name="eclipse.stylesheet" value="${docbookdir}/eclipse/eclipse.xsl" />
|
|
|
|
<property name="html.stylesheet" value="${docbookdir}/html/docbook.xsl" />
|
|
|
|
<property name="javahelp.stylesheet" value="${docbookdir}/javahelp/javahelp.xsl" />
|
|
|
|
<property name="xhtml5.stylesheet" value="${docbookdir}/xhtml5/docbook.xsl" />
|
|
|
|
|
2013-02-12 12:54:04 +01:00
|
|
|
<property name="docbooksource" value="${current-loc}/doc" />
|
2011-05-02 20:10:49 +02:00
|
|
|
<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
|
2015-08-24 09:45:25 +02:00
|
|
|
<property name="web.dir" value="${current-loc}/web" />
|
|
|
|
<property name="build.dir" value="${current-loc}/bin" />
|
|
|
|
<property name="delivery.dir" value="c:\\TEMP\\_DELIVERY_AREA" />
|
|
|
|
<property name="name" value="XServices" />
|
2011-05-02 20:10:49 +02:00
|
|
|
|
2013-02-12 12:54:04 +01:00
|
|
|
|
2011-05-02 20:10:49 +02:00
|
|
|
<!-- XSLT Chunking Properties -->
|
2013-02-12 12:54:04 +01:00
|
|
|
<property name="base.dir" value="${htmldir}" />
|
|
|
|
|
2011-05-02 20:10:49 +02:00
|
|
|
<target name="merge">
|
2013-11-26 21:30:39 +01:00
|
|
|
<!-- XInclude support comes with Eclipse XML Tools Project,
|
|
|
|
the Ant target needs to be executed in the Eclispe Workspace JRE
|
|
|
|
in order to get found. Any custom project specific runtime
|
|
|
|
may not work.
|
|
|
|
-->
|
2013-02-12 12:54:04 +01:00
|
|
|
<xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" out="${docbooksource}/BruteXServices_User_Guide.dbk" />
|
2011-05-02 20:10:49 +02:00
|
|
|
</target>
|
2013-02-12 12:54:04 +01:00
|
|
|
|
2011-05-02 20:10:49 +02:00
|
|
|
<target name="clean-doc">
|
|
|
|
<delete dir="${htmldir}" />
|
2013-02-12 12:54:04 +01:00
|
|
|
<mkdir dir="${htmldir}" />
|
2011-05-02 20:10:49 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="create-doc" depends="clean-doc, merge">
|
2015-08-24 09:45:25 +02:00
|
|
|
<xslt force="true" style="${html.stylesheet.hl}" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
|
2011-05-02 20:10:49 +02:00
|
|
|
<factory name="${xalan}" />
|
2015-08-24 09:45:25 +02:00
|
|
|
<classpath refid="xslthl.path" />
|
|
|
|
<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
|
|
|
|
<param name="highlight.source" expression="1" />
|
2014-06-15 09:50:25 +02:00
|
|
|
<param name="html.stylesheet" expression="style.css" />
|
2011-05-02 20:10:49 +02:00
|
|
|
</xslt>
|
2015-08-24 09:45:25 +02:00
|
|
|
<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
|
2011-05-02 20:10:49 +02:00
|
|
|
</target>
|
2013-02-12 12:54:04 +01:00
|
|
|
|
2015-08-24 09:45:25 +02:00
|
|
|
<!--
|
|
|
|
- target: chunks-html
|
|
|
|
- description: Iterates through a directory and transforms
|
|
|
|
- .xml files into seperate .html files using the DocBook XSL.
|
|
|
|
-->
|
|
|
|
<target name="build-chunks" depends="clean-doc, merge" description="chunk HTML from DocBook XML">
|
|
|
|
<xslt style="${html.chunked.stylesheet.hl}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
|
2012-01-23 19:54:01 +01:00
|
|
|
<factory name="${xalan}" />
|
2015-08-24 09:45:25 +02:00
|
|
|
<classpath refid="xslthl.path" />
|
|
|
|
<include name="**/*.dbk" />
|
2013-02-12 12:54:04 +01:00
|
|
|
<param name="base.dir" expression="${htmldir}/" />
|
2012-01-23 19:54:01 +01:00
|
|
|
<param name="use.id.as.filename" expression="1" />
|
2015-08-24 09:45:25 +02:00
|
|
|
<param name="html.stylesheet" expression="styles.css" />
|
|
|
|
<param name="section.autolabel" expression="1" />
|
|
|
|
<param name="html.cleanup" expression="1" />
|
|
|
|
<param name="chunk.first.selection" expression="1" />
|
|
|
|
<param name="navig.showtitles" expression="1" />
|
|
|
|
<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
|
|
|
|
<param name="highlight.source" expression="1" />
|
|
|
|
</xslt>
|
|
|
|
<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="build-pdf" depends="merge" description="PDF from DocBook XML">
|
|
|
|
<!-- Convert DocBook Files into FO -->
|
|
|
|
<xslt style="${fo.stylesheet.hl}" extension=".fo" basedir="${docbooksource}" destdir="${htmldir}">
|
|
|
|
<include name="BruteXServices_User_Guide.dbk" />
|
|
|
|
<classpath refid="xslthl.path" />
|
|
|
|
<param name="fop1.extensions" expression="1" />
|
|
|
|
<param name="section.autolabel" expression="1" />
|
|
|
|
<param name="chapter.autolabel" expression="1" />
|
|
|
|
<param name="appendix.autolabel" expression="1" />
|
|
|
|
<param name="section.label.includes.component.label" expression="1" />
|
|
|
|
<param name="highlight.xslthl.config" expression="file:///C:/JAVA-DEV/docbook-xsl-1.78.1/highlighting/xslthl-config.xml" />
|
|
|
|
<param name="highlight.source" expression="1" />
|
|
|
|
<param name="paper.type" expression="A4" />
|
|
|
|
</xslt>
|
|
|
|
|
|
|
|
<!-- Convert FO Files into pdf -->
|
|
|
|
<fop format="application/pdf" outdir="${htmldir}">
|
|
|
|
<fileset dir="${htmldir}">
|
|
|
|
<include name="**/*.fo" />
|
|
|
|
</fileset>
|
|
|
|
</fop>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="build-html5" depends="clean-doc, merge" description="Generates HTML5 files">
|
|
|
|
|
|
|
|
<xslt style="${xhtml5.stylesheet}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
|
|
|
|
<include name="**/*.dbk" />
|
|
|
|
<param name="html.stylesheet" expression="style.css" />
|
|
|
|
<param name="docbook.css.source" expression="" />
|
|
|
|
<param name="section.autolabel" expression="1" />
|
|
|
|
<param name="make.clean.html" expression="1" />
|
2012-01-23 19:54:01 +01:00
|
|
|
</xslt>
|
|
|
|
</target>
|
2011-05-02 20:10:49 +02:00
|
|
|
|
2015-08-24 09:45:25 +02:00
|
|
|
<!--
|
|
|
|
- target: build-javahelp
|
|
|
|
- description: Iterates through a directory and transforms
|
|
|
|
- .xml files into .html files using the DocBook XSL.
|
|
|
|
-->
|
|
|
|
<target name="build-javahelp" depends="clean-doc, merge" description="JavaHelp from DocBook XML">
|
|
|
|
<xslt style="${javahelp.stylesheet}" extension=".html" basedir="${docbooksource}" destdir="${htmldir}">
|
|
|
|
<include name="**/*.dbk" />
|
|
|
|
<outputproperty name="indent" value="yes" />
|
|
|
|
</xslt>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="build-eclipse" depends="clean-doc, merge" description="Eclipse help from DocBook XML">
|
|
|
|
<xslt style="${eclipse.stylesheet}" basedir="${docbooksource}" destdir="${htmldir}">
|
|
|
|
<include name="**/*.dbk" />
|
|
|
|
</xslt>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-12 12:54:04 +01:00
|
|
|
<!-- =================================
|
|
|
|
target: resolve
|
2015-08-24 09:45:25 +02:00
|
|
|
================================= -->
|
2013-02-12 12:54:04 +01:00
|
|
|
<target name="resolve" description="--> retrieve dependencies with ivy">
|
|
|
|
<ivy:retrieve />
|
|
|
|
</target>
|
|
|
|
|
2015-08-24 09:45:25 +02:00
|
|
|
<target name="build-war">
|
|
|
|
<ivy:retrieve pattern="c://TEMP/lib/default/[artifact]-[revision].[ext]" conf="default" />
|
|
|
|
<war destfile="${delivery.dir}\\${name}.war" webxml="${web.dir}/WEB-INF/web.xml">
|
|
|
|
<fileset dir="${web.dir}/">
|
|
|
|
<include name="**/*.*" />
|
|
|
|
</fileset>
|
|
|
|
<lib dir="c://TEMP/lib/default">
|
|
|
|
<!--<exclude name="portlet.jar"/>-->
|
|
|
|
</lib>
|
|
|
|
<classes dir="${build.dir}" />
|
|
|
|
</war>
|
|
|
|
<tstamp>
|
|
|
|
<format property="build.version" pattern="yyyyMMddhhmmss" />
|
|
|
|
</tstamp>
|
|
|
|
<mkdir dir="${delivery.dir}\\${name}\\${name}-${build.version}" />
|
|
|
|
<move file="${delivery.dir}\\${name}.war" toFile="${delivery.dir}\\${name}\\${name}-${build.version}\\${name}.war" />
|
|
|
|
<copy todir="${delivery.dir}\\${name}\\${name}-${build.version}\\html">
|
|
|
|
<fileset dir="${htmldir}">
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<echo>Distribution: ${delivery.dir}\\${name}\\${name}-${build.version} </echo>
|
|
|
|
</target>
|
|
|
|
|
2011-05-02 20:10:49 +02:00
|
|
|
</project>
|