kprice | 6decb03 | 2008-04-01 19:05:41 +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 | 2008-01-09 Kate Price <katep@ca.ibm.com> |
| 25 | - modified for new DITA-OT version |
kprice | e0e059a | 2008-05-14 20:04:50 +0000 | [diff] [blame] | 26 | 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 |
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 29 | --> |
| 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" /> |
kprice | b68e6af | 2008-05-15 22:17:35 +0000 | [diff] [blame] | 51 | <property name="args.csspath" value="../org.eclipse.wst.doc.user" /> |
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 52 | <property name="args.eclipse.provider" value="Eclipse.org" /> |
kprice | b68e6af | 2008-05-15 22:17:35 +0000 | [diff] [blame] | 53 | <property name="args.eclipse.version" value="3.3.0" /> |
kprice | e0e059a | 2008-05-14 20:04:50 +0000 | [diff] [blame] | 54 | <property name="args.input" location="wsaxis2build_toc.ditamap" /> |
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 55 | <property name="clean.temp" value="true" /> |
| 56 | <property name="dita.extname" value=".dita" /> |
| 57 | <property name="dita.temp.dir" location="temp" /> |
kprice | b68e6af | 2008-05-15 22:17:35 +0000 | [diff] [blame] | 58 | <property name="output.dir" location="" /> |
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 59 | <property name="transtype" value="eclipsehelp" /> |
| 60 | </ant> |
| 61 | <copy file="myplugin.xml" tofile="plugin.xml" overwrite="yes" /> |
| 62 | </target> |
kprice | e0e059a | 2008-05-14 20:04:50 +0000 | [diff] [blame] | 63 | <target name="build.index" description="Builds search index for the plug-in" if="eclipse.running"> |
| 64 | <help.buildHelpIndex manifest="plugin.xml" destination="."/> |
| 65 | </target> |
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 66 | </project> |