blob: b8728898d24bf4693145987cb719dcc6742c3109 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
Copyright (c) 2007, 2019 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
SPDX-License-Identifier: EPL-2.0
IBM Corporation - initial API and implementation
This script build the Help plug-in by transforming the DITA source files into HTML.
To use this script, you must install DITA-OT on your machine in the directory
defined by the dita.ot.dir property.
Run the default target after you edit the DITA source files to regenerate the HTML.
To customize this script for other Help plug-ins, modify the value of the args.input property
to be the DITA map file for the plug-in.
NOTE: This script assumes that links to sibling Help plug-ins have scope="peer", otherwise the
output directory structure will be shifted incorrectly.
NOTE: This script assumes that you hand code your plugin.xml file in myplugin.xml. This file
will be copied over the generated plugin.xml which is currently not being generated correctly
2006-04-05 Arthur Ryman <>
- Created.
2008-05-05 Kate Price <>
- modified to add generation of pre-built help index.
- Must delete /index folder before running build
<project name="eclipsehelp" default="all">
<property name="dita.ot.dir" location="C:/DITA-OT1.2.2" />
<path id="dost.class.path">
<pathelement location="${dita.ot.dir}${file.separator}lib${file.separator}dost.jar" />
<taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask">
<classpath refid="dost.class.path" />
<target name="all" depends="integrate, eclipsehelp">
<target name="integrate">
<integrate ditadir="${dita.ot.dir}" />
<!-- revise below here -->
<target name="eclipsehelp">
<ant antfile="${dita.ot.dir}${file.separator}conductor.xml" target="init" dir="${dita.ot.dir}">
<property name="args.copycss" value="no" />
<property name="args.csspath" value="../org.eclipse.wst.doc.user" />
<property name="args.eclipse.provider" value="" />
<property name="args.eclipse.version" value="3.4.0" />
<property name="args.input" location="wtp_reltable.ditamap" />
<property name="clean.temp" value="true" />
<property name="dita.extname" value=".dita" />
<property name="dita.temp.dir" location="temp" />
<property name="output.dir" location="" />
<property name="transtype" value="eclipsehelp" />
<copy file="myplugin.xml" tofile="plugin.xml" overwrite="yes" />
<target name="build.index" description="Builds search index for the plug-in" if="eclipse.running">
<help.buildHelpIndex manifest="plugin.xml" destination="."/>