Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions samples/ant_sample/sample_all.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 20011 All Rights Reserved. -->
<project name="sample_all" default="all" basedir=".">

<property name="args.logdir" value="log"/>

<import file="sample_xhtml.xml"/>
<import file="sample_tocjs.xml"/>
<import file="sample_eclipsehelp.xml"/>
<import file="sample_javahelp.xml"/>
<import file="sample_htmlhelp.xml"/>
<import file="sample_pdf.xml"/>
<import file="sample_docbook.xml"/>
<import file="sample_odt.xml"/>
<import file="sample_troff.xml"/>

<target name="all" depends="samples"/>

<target name="samples" description="build the sample output"
depends="samples.web, samples.tocjs, samples.eclipse, samples.javahelp, samples.htmlhelp, samples.pdf, samples.docbook, samples.odt, samples.troff"/>

<target name="clean.samples" description="remove the sample output"
depends="clean.samples.web, clean.samples.eclipse, clean.samples.tocjs, clean.samples.javahelp, clean.samples.htmlhelp, clean.samples.pdf">
<delete dir="${dita.dir}/out/samples"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_docbook.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2011 All Rights Reserved. -->
<project name="sample_docbook" default="samples.docbook" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.docbook" description="transform the samples to DocBook" depends="clean.samples.docbook">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/docbook"/>
<property name="transtype" value="docbook"/>
</ant>
</target>

<target name="clean.samples.docbook" description="remove the sample DocBook output">
<delete dir="${dita.dir}/out/samples/docbook"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_eclipsehelp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2011 All Rights Reserved. -->
<project name="sample_eclipsehelp" default="samples.eclipse" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.eclipse" description="build the samples for Eclipse" depends="clean.samples.eclipse">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/org.dita.sample.doc"/>
<property name="transtype" value="eclipsehelp"/>
</ant>
</target>

<target name="clean.samples.eclipse" description="remove the sample Eclipse output">
<delete dir="${dita.dir}/out/samples/org.dita.sample.doc"/>
</target>

</project>
23 changes: 23 additions & 0 deletions samples/ant_sample/sample_htmlhelp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->

<project name="sample_htmlhelp" default="samples.htmlhelp" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.htmlhelp" description="build the samples for HTMLHelp" depends="clean.samples.htmlhelp">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/htmlhelp"/>
<property name="transtype" value="htmlhelp"/>
</ant>
</target>

<target name="clean.samples.htmlhelp" description="remove the sample HTMLHelp output">
<delete dir="${dita.dir}/out/samples/htmlhelp"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_javahelp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_javahelp" default="samples.javahelp" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.javahelp" description="build the samples for JavaHelp" depends="clean.samples.javahelp">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/javahelp"/>
<property name="transtype" value="javahelp"/>
</ant>
</target>

<target name="clean.samples.javahelp" description="remove the sample JavaHelp output">
<delete dir="${dita.dir}/out/samples/javahelp"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_odt.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_odt" default="samples.odt" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.odt" description="transform the samples to ODT" depends="clean.samples.odt">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/odt"/>
<property name="transtype" value="odt"/>
</ant>
</target>

<target name="clean.samples.odt" description="remove the sample ODT output">
<delete dir="${dita.dir}/out/samples/odt"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_pdf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_pdf" default="samples.pdf" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.pdf" description="build the samples as PDF" depends="clean.samples.pdf">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/sequence.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/pdf"/>
<property name="transtype" value="pdf"/>
</ant>
</target>

<target name="clean.samples.pdf" description="remove the sample PDF output">
<delete dir="${dita.dir}/out/samples/pdf"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_tocjs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_tocjs" default="samples.tocjs" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.tocjs" description="build the samples for the TocJS" depends="clean.samples.tocjs">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/tocjs"/>
<property name="transtype" value="tocjs"/>
</ant>
</target>

<target name="clean.samples.tocjs" description="remove the sample TocJS output">
<delete dir="${dita.dir}/out/samples/tocjs"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_troff.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_troff" default="samples.troff" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.troff" description="test dita to troff" depends="clean.samples.troff">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/troff"/>
<property name="transtype" value="troff"/>
</ant>
</target>

<target name="clean.samples.troff" description="remove the sample troff output">
<delete dir="${dita.dir}/out/samples/troff"/>
</target>

</project>
22 changes: 22 additions & 0 deletions samples/ant_sample/sample_wordrtf.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2005, 2006 All Rights Reserved. -->
<project name="sample_wordrtf" default="samples.wordrtf" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.wordrtf" description="transform the samples to RTF" depends="clean.samples.wordrtf">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/wordrtf"/>
<property name="transtype" value="wordrtf"/>
</ant>
</target>

<target name="clean.samples.wordrtf" description="remove the sample RTF output">
<delete dir="${dita.dir}/out/samples/wordrtf"/>
</target>

</project>
26 changes: 26 additions & 0 deletions samples/ant_sample/sample_xhtml.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<project name="sample_xhtml" default="samples.web" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<target name="samples.web" description="build the samples for the web" depends="clean.samples.web">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${dita.dir}/out/samples/web"/>
<property name="args.xhtml.toc" value="toc"/>
<property name="transtype" value="xhtml"/>
</ant>
<copy todir="${dita.dir}/out/samples/web">
<fileset dir="${dita.dir}/resource" includes="index.html"/>
</copy>
</target>

<target name="clean.samples.web" description="remove the sample web output">
<delete dir="${dita.dir}/out/samples/web"/>
</target>

</project>
33 changes: 33 additions & 0 deletions samples/ant_sample/sample_xhtml_plus_css.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2009 All Rights Reserved. -->
<project name="sample_xhtml_plus_css" default="samples.xhtml_plus_css" basedir=".">

<property name="dita.dir" location="${basedir}/../.."/>

<property name="sample.output.dir" value="${dita.dir}/out/xhtml_plus_css"/>
<property name="css.source.dir" location="${dita.dir}/samples/css"/>

<target name="samples.xhtml_plus_css" depends="clean.samples.xhtml_plus_css">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="${dita.dir}/samples/hierarchy.ditamap"/>
<property name="output.dir" location="${sample.output.dir}"/>
<property name="transtype" value="xhtml"/>
<property name="args.css" value="style.css"/>
<property name="args.csspath" value="css"/>
<property name="args.copycss" value="yes"/>
<property name="args.cssroot" location="${css.source.dir}"/>
</ant>
<copy todir="${sample.output.dir}/css">
<fileset dir="${css.source.dir}" includes="*.jpg"/>
</copy>
</target>

<target name="clean.samples.xhtml_plus_css" description="remove the sample web output">
<delete dir="${sample.output.dir}"/>
</target>


</project>
29 changes: 29 additions & 0 deletions samples/ant_sample/template_docbook.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
<!-- revise @PLACEHOLDER@ names and values-->

<!--
| basedir can be specified to other places base on your need.
|
| Note: input, output, and temp directories will base on the basedir if
| they are relative paths.
* -->

<project name="@PROJECT.NAME@_docbook" default="@DELIVERABLE.NAME@2docbook" basedir=".">

<!-- dita.dir should point to the toolkit's root directory -->
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}.."/>

<target name="@DELIVERABLE.NAME@2docbook">
<ant antfile="${dita.dir}${file.separator}build.xml">
<!-- please refer to the toolkit's document for supported parameters, and
specify them base on your needs -->
<property name="args.input" location="@DITA.INPUT@"/>
<property name="output.dir" location="@OUTPUT.DIR@"/>
<property name="transtype" value="docbook"/>
</ant>
</target>
</project>
29 changes: 29 additions & 0 deletions samples/ant_sample/template_eclipsehelp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
<!-- revise @PLACEHOLDER@ names and values-->

<!--
| basedir can be specified to other places base on your need.
|
| Note: input, output, and temp directories will base on the basedir if
| they are relative paths.
* -->

<project name="@PROJECT.NAME@_eclipsehelp" default="@DELIVERABLE.NAME@2eclipsehelp" basedir=".">

<!-- dita.dir should point to the toolkit's root directory -->
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}.."/>

<target name="@DELIVERABLE.NAME@2eclipsehelp">
<ant antfile="${dita.dir}${file.separator}build.xml">
<!-- please refer to the toolkit's document for supported parameters, and
specify them base on your needs -->
<property name="args.input" location="@DITA.INPUT@"/>
<property name="output.dir" location="@OUTPUT.DIR@"/>
<property name="transtype" value="eclipsehelp"/>
</ant>
</target>
</project>
29 changes: 29 additions & 0 deletions samples/ant_sample/template_htmlhelp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This file is part of the DITA Open Toolkit project hosted on
Sourceforge.net. See the accompanying license.txt file for
applicable licenses.-->
<!-- (c) Copyright IBM Corp. 2004, 2006 All Rights Reserved. -->
<!-- revise @PLACEHOLDER@ names and values-->

<!--
| basedir can be specified to other places base on your need.
|
| Note: input, output, and temp directories will base on the basedir if
| they are relative paths.
* -->

<project name="@PROJECT.NAME@_htmlhelp" default="@DELIVERABLE.NAME@2htmlhelp" basedir=".">

<!-- dita.dir should point to the toolkit's root directory -->
<property name="dita.dir" location="${basedir}${file.separator}..${file.separator}.."/>

<target name="@DELIVERABLE.NAME@2htmlhelp">
<ant antfile="${dita.dir}${file.separator}build.xml">
<!-- please refer to the toolkit's document for supported parameters, and
specify them base on your needs -->
<property name="args.input" location="@DITA.INPUT@"/>
<property name="output.dir" location="@OUTPUT.DIR@"/>
<property name="transtype" value="htmlhelp"/>
</ant>
</target>
</project>
Loading