kprice | d9e0caf | 2007-05-08 21:21:40 +0000 | [diff] [blame] | 1 | <?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. |
| 24 | |
| 25 | --> |
| 26 | <project name="eclipsehelp" default="all"> |
| 27 | |
| 28 | <property name="dita.ot.dir" location="C:/DITA-OT1.2.2" /> |
| 29 | |
| 30 | <path id="dost.class.path"> |
| 31 | <pathelement location="${dita.ot.dir}${file.separator}lib${file.separator}dost.jar" /> |
| 32 | </path> |
| 33 | |
| 34 | <taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask"> |
| 35 | <classpath refid="dost.class.path" /> |
| 36 | </taskdef> |
| 37 | <target name="all" depends="integrate, eclipsehelp"> |
| 38 | </target> |
| 39 | <target name="integrate"> |
| 40 | <integrate ditadir="${dita.ot.dir}" /> |
| 41 | </target> |
| 42 | |
| 43 | <!-- revise below here --> |
| 44 | <target name="eclipsehelp"> |
| 45 | <ant antfile="${dita.ot.dir}${file.separator}conductor.xml" target="init" dir="${dita.ot.dir}"> |
| 46 | <property name="args.copycss" value="no" /> |
| 47 | <property name="args.csspath" value="org.eclipse.wst.doc.user" /> |
| 48 | <property name="args.eclipse.provider" value="Eclipse.org" /> |
| 49 | <property name="args.eclipse.version" value="1.5.0" /> |
| 50 | <property name="args.input" location="DTDEditormap_toc.ditamap" /> |
| 51 | <property name="clean.temp" value="true" /> |
| 52 | <property name="dita.extname" value=".dita" /> |
| 53 | <property name="dita.temp.dir" location="temp" /> |
| 54 | <property name="output.dir" location=".." /> |
| 55 | <property name="transtype" value="eclipsehelp" /> |
| 56 | </ant> |
| 57 | <copy file="myplugin.xml" tofile="plugin.xml" overwrite="yes" /> |
| 58 | </target> |
| 59 | </project> |