Skip to main content
summaryrefslogtreecommitdiffstats
blob: ae96a16ad95e1b219713c73edd1f76917e903bda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8" ?>
<!-- 

	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
	by DITA-OT.
	
	ChangeLog:
	2006-04-05 Arthur Ryman <ryman@ca.ibm.com>
	- Created.

-->
<project name="eclipsehelp" default="all">

	<property name="dita.ot.dir" location="C:/DITA-OT1.2.1" />

	<path id="dost.class.path">
		<pathelement location="${dita.ot.dir}${file.separator}lib${file.separator}dost.jar" />
	</path>

	<taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask">
		<classpath refid="dost.class.path" />
	</taskdef>
	<target name="all" depends="integrate, eclipsehelp">
	</target>
	<target name="integrate">
		<integrate ditadir="${dita.ot.dir}" />
	</target>

	<!-- 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="Eclipse.org" />
			<property name="args.eclipse.version" value="1.5.0" />
			<property name="args.input" location="wsconsumptionbuild_toc.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" />
		</ant>
		<copy file="myplugin.xml" tofile="plugin.xml" overwrite="yes" />
	</target>
</project>

Back to the top