blob: fc89e9f9bd488e74ce32366872e2b142cdc186db [file] [log] [blame]
kpriced9e0caf2007-05-08 21:21:40 +00001<?xml version="1.0" encoding="UTF-8" ?>
2<!--
3
4 This script build the Help plug-in by transforming the DITA source files into HTML.
5
6 To use this script, you must install DITA-OT on your machine in the directory
7 defined by the dita.ot.dir property.
8
9 Run the default target after you edit the DITA source files to regenerate the HTML.
10
11 To customize this script for other Help plug-ins, modify the value of the args.input property
12 to be the DITA map file for the plug-in.
13
14 NOTE: This script assumes that links to sibling Help plug-ins have scope="peer", otherwise the
15 output directory structure will be shifted incorrectly.
16
17 NOTE: This script assumes that you hand code your plugin.xml file in myplugin.xml. This file
18 will be copied over the generated plugin.xml which is currently not being generated correctly
19 by DITA-OT.
20
21 ChangeLog:
22 2006-04-05 Arthur Ryman <ryman@ca.ibm.com>
23 - Created.
kpriced7d9fb32008-03-11 17:09:47 +000024 2008-01-09 Kate Price <katep@ca.ibm.com>
25 - modified for new DITA-OT version
kpriceb53aa732008-05-12 20:17:43 +000026 2008-05-05 Kate Price <katep@ca.ibm.com>
27 - modified to add generation of pre-built help index.
28 - Must delete /index folder before running build
kpriced9e0caf2007-05-08 21:21:40 +000029-->
30<project name="eclipsehelp" default="all">
31
32 <property name="dita.ot.dir" location="C:/DITA-OT1.2.2" />
33
34 <path id="dost.class.path">
35 <pathelement location="${dita.ot.dir}${file.separator}lib${file.separator}dost.jar" />
36 </path>
37
38 <taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask">
39 <classpath refid="dost.class.path" />
40 </taskdef>
41 <target name="all" depends="integrate, eclipsehelp">
42 </target>
43 <target name="integrate">
44 <integrate ditadir="${dita.ot.dir}" />
45 </target>
46
47 <!-- revise below here -->
48 <target name="eclipsehelp">
49 <ant antfile="${dita.ot.dir}${file.separator}conductor.xml" target="init" dir="${dita.ot.dir}">
50 <property name="args.copycss" value="no" />
kpriced7d9fb32008-03-11 17:09:47 +000051 <property name="args.csspath" value="../org.eclipse.wst.doc.user" />
kpriced9e0caf2007-05-08 21:21:40 +000052 <property name="args.eclipse.provider" value="Eclipse.org" />
kpriced7d9fb32008-03-11 17:09:47 +000053 <property name="args.eclipse.version" value="3.3.0" />
54 <property name="args.input" location="XMLBuildermap_toc.ditamap" />
kpriced9e0caf2007-05-08 21:21:40 +000055 <property name="clean.temp" value="true" />
56 <property name="dita.extname" value=".dita" />
57 <property name="dita.temp.dir" location="temp" />
kpriced7d9fb32008-03-11 17:09:47 +000058 <property name="output.dir" location="" />
kpriced9e0caf2007-05-08 21:21:40 +000059 <property name="transtype" value="eclipsehelp" />
60 </ant>
61 <copy file="myplugin.xml" tofile="plugin.xml" overwrite="yes" />
62 </target>
kpriceb53aa732008-05-12 20:17:43 +000063 <target name="build.index" description="Builds search index for the plug-in" if="eclipse.running">
64 <help.buildHelpIndex manifest="plugin.xml" destination="."/>
65 </target>
kpriced9e0caf2007-05-08 21:21:40 +000066</project>