1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- This file is part of the DITA Open Toolkit project hosted on
|
---|
3 | Sourceforge.net. See the accompanying license.txt file for
|
---|
4 | applicable licenses.-->
|
---|
5 | <!-- (c) Copyright IBM Corp. 2006 All Rights Reserved. -->
|
---|
6 | <project xmlns:dita="http://dita-ot.sourceforge.net" name="dita2eclipsehelp">
|
---|
7 |
|
---|
8 | <target name="dita.eclipsehelp.init">
|
---|
9 | <condition property="args.xsl" value="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/dita2xhtml_eclipsehelp.xsl">
|
---|
10 | <not>
|
---|
11 | <isset property="args.xsl" />
|
---|
12 | </not>
|
---|
13 | </condition>
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <target name="dita.index.eclipsehelp.init">
|
---|
17 | <condition property="dita.eclipsehelp.index.class" value="org.dita.dost.writer.EclipseIndexWriter">
|
---|
18 | <not><isset property="dita.eclipsehelp.index.class"></isset></not>
|
---|
19 | </condition>
|
---|
20 | </target>
|
---|
21 |
|
---|
22 |
|
---|
23 | <target name="dita2eclipsehelp"
|
---|
24 | unless="noMap"
|
---|
25 | depends="build-init, dita.eclipsehelp.init, preprocess, copy-css,
|
---|
26 | dita.topics.xhtml, dita.inner.topics.xhtml, dita.outer.topics.xhtml">
|
---|
27 | <antcall target="dita.map.eclipse"></antcall>
|
---|
28 | </target>
|
---|
29 |
|
---|
30 | <target name="dita.map.eclipse"
|
---|
31 | depends=" dita.map.eclipse.init, copy-plugin-files, dita.map.eclipse.fragment.language.init, dita.map.eclipse.fragment.language.country.init, dita.map.eclipse.fragment.error">
|
---|
32 |
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <target name="dita.map.eclipse.init" if="eclipse.plugin"
|
---|
36 | depends="dita.map.eclipse.plugin.init">
|
---|
37 | <antcall target="dita.map.eclipse.generate.plugin"/>
|
---|
38 | </target>
|
---|
39 |
|
---|
40 | <target name="dita.map.eclipse.plugin.init"
|
---|
41 | description="Init properties for EclipseHelp">
|
---|
42 | <basename property="dita.map.toc.root"
|
---|
43 | file="${dita.input.filename}"
|
---|
44 | suffix=".ditamap" />
|
---|
45 | <condition property="args.eclipsehelp.toc" value="${dita.map.toc.root}">
|
---|
46 | <not>
|
---|
47 | <isset property="args.eclipsehelp.toc" />
|
---|
48 | </not>
|
---|
49 | </condition>
|
---|
50 | <condition property="out.ext" value=".html">
|
---|
51 | <not>
|
---|
52 | <isset property="out.ext" />
|
---|
53 | </not>
|
---|
54 | </condition>
|
---|
55 | <condition property="noPlugin">
|
---|
56 | <equals arg1="${dita.eclipse.plugin}" arg2="no" />
|
---|
57 | </condition>
|
---|
58 | <condition property="eclipse.fragment.language">
|
---|
59 | <and>
|
---|
60 | <isset property="args.eclipsehelp.language" />
|
---|
61 | <not>
|
---|
62 | <isset property="args.eclipsehelp.country" />
|
---|
63 | </not>
|
---|
64 | </and>
|
---|
65 | </condition>
|
---|
66 | <condition property="eclipse.fragment.country">
|
---|
67 | <and>
|
---|
68 | <isset property="args.eclipsehelp.language" />
|
---|
69 | <isset property="args.eclipsehelp.country" />
|
---|
70 | </and>
|
---|
71 | </condition>
|
---|
72 |
|
---|
73 | <condition property="eclipse.plugin">
|
---|
74 | <not>
|
---|
75 | <or>
|
---|
76 | <isset property="args.eclipsehelp.language" />
|
---|
77 | <isset property="args.eclipsehelp.country" />
|
---|
78 | <and>
|
---|
79 | <isset property="args.eclipsehelp.country" />
|
---|
80 | <isset property="args.eclipsehelp.language" />
|
---|
81 | </and>
|
---|
82 | </or>
|
---|
83 | </not>
|
---|
84 | </condition>
|
---|
85 | <condition property="eclipse.fragment.error">
|
---|
86 | <and>
|
---|
87 | <isset property="args.eclipsehelp.country" />
|
---|
88 | <not>
|
---|
89 | <isset property="args.eclipsehelp.language" />
|
---|
90 | </not>
|
---|
91 | </and>
|
---|
92 | </condition>
|
---|
93 | <condition property="args.eclipsehelp.indexsee" value="false">
|
---|
94 | <not>
|
---|
95 | <isset property="args.eclipsehelp.indexsee"></isset>
|
---|
96 | </not>
|
---|
97 | </condition>
|
---|
98 | </target>
|
---|
99 |
|
---|
100 | <target name="dita.map.eclipse.toc" unless="noMap"
|
---|
101 | depends="dita.map.eclipse.plugin.init" if="old.transform"
|
---|
102 | description="Build EclipseHelp TOC file">
|
---|
103 | <xslt
|
---|
104 | basedir="${dita.temp.dir}"
|
---|
105 | destdir="${output.dir}"
|
---|
106 | includesfile="${dita.temp.dir}${file.separator}${fullditamapfile}"
|
---|
107 | extension=".xml"
|
---|
108 | classpathref="dost.class.path"
|
---|
109 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2eclipse.xsl">
|
---|
110 | <excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"/>
|
---|
111 | <includesfile name="${dita.temp.dir}${file.separator}${chunkedditamapfile}" if="chunkedditamapfile"/>
|
---|
112 | <param name="DITAEXT" expression="${dita.ext}" if="dita.ext" />
|
---|
113 | <param name="OUTEXT" expression="${out.ext}" if="out.ext" />
|
---|
114 | <param name="WORKDIR" expression="${workdir}" if="workdir"/>
|
---|
115 | <xmlcatalog refid="dita.catalog"/>
|
---|
116 | </xslt>
|
---|
117 | </target>
|
---|
118 |
|
---|
119 | <target name="dita.out.map.eclipse.toc" unless="noMap"
|
---|
120 | depends="dita.map.eclipse.plugin.init" if="inner.transform"
|
---|
121 | description="Build EclipseHelp TOC file">
|
---|
122 | <xslt
|
---|
123 | basedir="${dita.temp.dir}"
|
---|
124 | destdir="${output.dir}"
|
---|
125 | includesfile="${dita.temp.dir}${file.separator}${fullditamapfile}"
|
---|
126 | classpathref="dost.class.path"
|
---|
127 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2eclipse.xsl">
|
---|
128 | <excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"/>
|
---|
129 | <includesfile name="${dita.temp.dir}${file.separator}${chunkedditamapfile}" if="chunkedditamapfile"/>
|
---|
130 | <param name="DITAEXT" expression="${dita.ext}" if="dita.ext" />
|
---|
131 | <param name="OUTEXT" expression="${out.ext}" if="out.ext" />
|
---|
132 | <param name="WORKDIR" expression="${workdir}" if="workdir"/>
|
---|
133 | <dita:extension behavior="org.dita.dost.platform.InsertAction" id="dita.conductor.eclipse.toc.param"/>
|
---|
134 | <mapper type="regexp"
|
---|
135 | from="^(${tempdirToinputmapdir.relative.value})(.*?)(\.ditamap)$$"
|
---|
136 | to="\2\.xml"/>
|
---|
137 | <xmlcatalog refid="dita.catalog"/>
|
---|
138 | </xslt>
|
---|
139 | </target>
|
---|
140 |
|
---|
141 | <target name="dita.map.eclipse.index" unless="noMap"
|
---|
142 | if="old.transform"
|
---|
143 | dita:depends="{dita.map.eclipse.index.pre},dita.map.eclipse.plugin.init,dita.index.eclipsehelp.init"
|
---|
144 | dita:extension="depends org.dita.dost.platform.InsertDependsAction"
|
---|
145 | description="Build Eclipse Help index file">
|
---|
146 | <echo level="info"> args.eclipsehelp.indexsee = ${args.eclipsehelp.indexsee} </echo>
|
---|
147 | <pipeline message="Extract index term."
|
---|
148 | tempdir="${dita.temp.dir}"
|
---|
149 | inputmap="${user.input.file}">
|
---|
150 | <module class="org.dita.dost.module.IndexTermExtractModule">
|
---|
151 | <param name="output" location="${output.dir}${file.separator}${user.input.file}"/>
|
---|
152 | <param name="targetext" value="${out.ext}"/>
|
---|
153 | <param name="indextype" value="eclipsehelp"/>
|
---|
154 | <param name="indexclass" value="${dita.eclipsehelp.index.class}"/>
|
---|
155 | <param name="eclipse.indexsee" value="${args.eclipsehelp.indexsee}"/>
|
---|
156 | <param name="encoding" value="${args.dita.locale}" if="args.dita.locale"/>
|
---|
157 | </module>
|
---|
158 | </pipeline>
|
---|
159 | </target>
|
---|
160 |
|
---|
161 | <target name="dita.out.map.eclipse.index" unless="noMap"
|
---|
162 | if="inner.transform"
|
---|
163 | dita:depends="{dita.map.eclipse.index.pre},dita.map.eclipse.plugin.init,dita.index.eclipsehelp.init"
|
---|
164 | dita:extension="depends org.dita.dost.platform.InsertDependsAction"
|
---|
165 | description="Build Eclipse Help index file">
|
---|
166 | <echo level="info"> args.eclipsehelp.indexsee = ${args.eclipsehelp.indexsee} </echo>
|
---|
167 | <pipeline message="Extract index term."
|
---|
168 | tempdir="${dita.temp.dir}"
|
---|
169 | inputmap="${user.input.file}">
|
---|
170 | <module class="org.dita.dost.module.IndexTermExtractModule">
|
---|
171 | <param name="output" location="${output.dir}${file.separator}index.xml"/>
|
---|
172 | <param name="targetext" value="${out.ext}"/>
|
---|
173 | <param name="indextype" value="eclipsehelp"/>
|
---|
174 | <param name="indexclass" value="${dita.eclipsehelp.index.class}"/>
|
---|
175 | <param name="eclipse.indexsee" value="${args.eclipsehelp.indexsee}"/>
|
---|
176 | <param name="encoding" value="${args.dita.locale}" if="args.dita.locale"/>
|
---|
177 | </module>
|
---|
178 | </pipeline>
|
---|
179 | </target>
|
---|
180 |
|
---|
181 | <target name="dita.map.eclipse.plugin"
|
---|
182 | unless="noPlugin"
|
---|
183 | depends="dita.map.eclipse.plugin.init" if="old.transform"
|
---|
184 | description="Build Eclipsehelp plugin file">
|
---|
185 | <xslt
|
---|
186 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
187 | out="${dita.map.output.dir}${file.separator}plugin.xml"
|
---|
188 | classpathref="dost.class.path"
|
---|
189 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
190 | <param name="TOCROOT" expression="${args.eclipsehelp.toc}" />
|
---|
191 | <param name="version"
|
---|
192 | expression="${args.eclipse.version}"
|
---|
193 | if="args.eclipse.version" />
|
---|
194 | <param name="provider"
|
---|
195 | expression="${args.eclipse.provider}"
|
---|
196 | if="args.eclipse.provider" />
|
---|
197 | <param name="osgi.symbolic.name"
|
---|
198 | expression="${args.eclipse.symbolic.name}"
|
---|
199 | if="args.eclipse.symbolic.name"/>
|
---|
200 | <outputproperty value="yes" name="indent"/>
|
---|
201 | <param name="dita.plugin.output"
|
---|
202 | expression="dita.eclipse.plugin"/>
|
---|
203 | <xmlcatalog refid="dita.catalog"/>
|
---|
204 | </xslt>
|
---|
205 | </target>
|
---|
206 |
|
---|
207 | <target name="dita.out.map.eclipse.plugin"
|
---|
208 | unless="noPlugin"
|
---|
209 | depends="dita.map.eclipse.plugin.init" if="inner.transform"
|
---|
210 | description="Build Eclipsehelp plugin file">
|
---|
211 | <xslt
|
---|
212 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
213 | out="${output.dir}${file.separator}plugin.xml"
|
---|
214 | classpathref="dost.class.path"
|
---|
215 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
216 | <param name="TOCROOT" expression="${args.eclipsehelp.toc}" />
|
---|
217 | <param name="version"
|
---|
218 | expression="${args.eclipse.version}"
|
---|
219 | if="args.eclipse.version" />
|
---|
220 | <param name="provider"
|
---|
221 | expression="${args.eclipse.provider}"
|
---|
222 | if="args.eclipse.provider" />
|
---|
223 | <param name="osgi.symbolic.name"
|
---|
224 | expression="${args.eclipse.symbolic.name}"
|
---|
225 | if="args.eclipse.symbolic.name"/>
|
---|
226 | <outputproperty value="yes" name="indent"/>
|
---|
227 | <param name="dita.plugin.output"
|
---|
228 | expression="dita.eclipse.plugin"/>
|
---|
229 | <xmlcatalog refid="dita.catalog"/>
|
---|
230 | </xslt>
|
---|
231 | </target>
|
---|
232 |
|
---|
233 | <!-- New support for creating Eclipse fragments based on the similar map used to create a plug-in -->
|
---|
234 |
|
---|
235 |
|
---|
236 |
|
---|
237 | <target name="dita.map.eclipse.manifest.file"
|
---|
238 | unless="noPlugin"
|
---|
239 | depends="dita.map.eclipse.plugin.init" if="old.transform"
|
---|
240 | description="Build Eclipsehelp manifest.mf file">
|
---|
241 | <xslt
|
---|
242 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
243 | out="${dita.map.output.dir}${file.separator}META-INF${file.separator}MANIFEST.MF"
|
---|
244 | classpathref="dost.class.path"
|
---|
245 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
246 | <param name="version"
|
---|
247 | expression="${args.eclipse.version}"
|
---|
248 | if="args.eclipse.version" />
|
---|
249 | <param name="provider"
|
---|
250 | expression="${args.eclipse.provider}"
|
---|
251 | if="args.eclipse.provider" />
|
---|
252 | <param name="osgi.symbolic.name"
|
---|
253 | expression="${args.eclipse.symbolic.name}"
|
---|
254 | if="args.eclipse.symbolic.name"/>
|
---|
255 | <param name="plugin"
|
---|
256 | expression="${eclipse.plugin}" />
|
---|
257 | <param name="fragment.country"
|
---|
258 | expression="${args.eclipsehelp.country}"
|
---|
259 | if="eclipse.fragment.country"/>
|
---|
260 | <param name="fragment.lang"
|
---|
261 | expression="${args.eclipsehelp.language}"
|
---|
262 | if="args.eclipsehelp.language"/>
|
---|
263 | <outputproperty value="text" name="method"/>
|
---|
264 | <param name="dita.plugin.output"
|
---|
265 | expression="dita.eclipse.manifest"/>
|
---|
266 | <xmlcatalog refid="dita.catalog"/>
|
---|
267 | </xslt>
|
---|
268 | </target>
|
---|
269 |
|
---|
270 | <target name="dita.out.map.eclipse.manifest.file"
|
---|
271 | unless="noPlugin"
|
---|
272 | depends="dita.map.eclipse.plugin.init" if="inner.transform"
|
---|
273 | description="Build Eclipsehelp manifest.mf file">
|
---|
274 | <xslt
|
---|
275 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
276 | out="${dita.map.output.dir}${file.separator}META-INF${file.separator}MANIFEST.MF"
|
---|
277 | classpathref="dost.class.path"
|
---|
278 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
279 | <param name="version"
|
---|
280 | expression="${args.eclipse.version}"
|
---|
281 | if="args.eclipse.version" />
|
---|
282 | <param name="provider"
|
---|
283 | expression="${args.eclipse.provider}"
|
---|
284 | if="args.eclipse.provider" />
|
---|
285 | <param name="osgi.symbolic.name"
|
---|
286 | expression="${args.eclipse.symbolic.name}"
|
---|
287 | if="args.eclipse.symbolic.name"/>
|
---|
288 | <param name="plugin"
|
---|
289 | expression="${eclipse.plugin}" />
|
---|
290 | <param name="fragment.country"
|
---|
291 | expression="${args.eclipsehelp.country}"
|
---|
292 | if="eclipse.fragment.country"/>
|
---|
293 | <param name="fragment.lang"
|
---|
294 | expression="${args.eclipsehelp.language}"
|
---|
295 | if="args.eclipsehelp.language"/>
|
---|
296 | <outputproperty value="text" name="method"/>
|
---|
297 | <param name="dita.plugin.output"
|
---|
298 | expression="dita.eclipse.manifest"/>
|
---|
299 | <xmlcatalog refid="dita.catalog"/>
|
---|
300 | </xslt>
|
---|
301 | </target>
|
---|
302 |
|
---|
303 |
|
---|
304 | <target name="dita.map.eclipse.plugin.properties"
|
---|
305 | unless="noPlugin"
|
---|
306 | depends="dita.map.eclipse.plugin.init" if="old.transform"
|
---|
307 | description="Create eclipse plugin.properties file">
|
---|
308 | <xslt
|
---|
309 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
310 | out="${output.dir}${file.separator}plugin.properties"
|
---|
311 | classpathref="dost.class.path"
|
---|
312 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
313 | <outputproperty value="text" name="method"/>
|
---|
314 | <param name="dita.plugin.output"
|
---|
315 | expression="dita.eclipse.properties"/>
|
---|
316 | <param name="version"
|
---|
317 | expression="${args.eclipse.version}"
|
---|
318 | if="args.eclipse.version" />
|
---|
319 | <param name="provider"
|
---|
320 | expression="${args.eclipse.provider}"
|
---|
321 | if="args.eclipse.provider" />
|
---|
322 | <xmlcatalog refid="dita.catalog"/>
|
---|
323 | </xslt>
|
---|
324 | </target>
|
---|
325 |
|
---|
326 | <target name="dita.out.map.eclipse.plugin.properties"
|
---|
327 | unless="noPlugin"
|
---|
328 | depends="dita.map.eclipse.plugin.init" if="inner.transform"
|
---|
329 | description="Create eclipse plugin.properties file">
|
---|
330 | <xslt
|
---|
331 | in="${dita.temp.dir}${file.separator}${user.input.file}"
|
---|
332 | out="${output.dir}${file.separator}plugin.properties"
|
---|
333 | classpathref="dost.class.path"
|
---|
334 | style="${dita.plugin.org.dita.eclipsehelp.dir}/xsl/map2plugin.xsl">
|
---|
335 | <outputproperty value="text" name="method"/>
|
---|
336 | <param name="dita.plugin.output" expression="dita.eclipse.properties"/>
|
---|
337 | <param name="version"
|
---|
338 | expression="${args.eclipse.version}"
|
---|
339 | if="args.eclipse.version" />
|
---|
340 | <param name="provider"
|
---|
341 | expression="${args.eclipse.provider}"
|
---|
342 | if="args.eclipse.provider" />
|
---|
343 | <xmlcatalog refid="dita.catalog"/>
|
---|
344 | </xslt>
|
---|
345 | </target>
|
---|
346 |
|
---|
347 | <target name="dita.map.eclipse.fragment.language.init" if="eclipse.fragment.language"
|
---|
348 | depends="dita.map.eclipse.plugin.init">
|
---|
349 | <property name="fragment.dirname.init" value="nl" />
|
---|
350 | <property name="fragment.dirname" value="${fragment.dirname.init}${file.separator}${args.eclipsehelp.language}"/>
|
---|
351 | <property name="fragment.property.name" value="${args.eclipsehelp.language}"/>
|
---|
352 | <antcall target="dita.map.eclipse.genetrate.fragment"/>
|
---|
353 | </target>
|
---|
354 |
|
---|
355 | <target name="dita.map.eclipse.fragment.language.country.init" if="eclipse.fragment.country"
|
---|
356 | depends="dita.map.eclipse.plugin.init">
|
---|
357 | <property name="fragment.dirname.init" value="nl" />
|
---|
358 | <property name="fragment.dirname" value="${fragment.dirname.init}${file.separator}${args.eclipsehelp.language}${file.separator}${args.eclipsehelp.country}"/>
|
---|
359 | <property name="fragment.property.name" value="${args.eclipsehelp.language}_${args.eclipsehelp.country}"/>
|
---|
360 | <antcall target="dita.map.eclipse.genetrate.fragment"/>
|
---|
361 | </target>
|
---|
362 |
|
---|
363 | <target name="dita.map.eclipse.fragment.error" if="eclipse.fragment.error"
|
---|
364 | depends="dita.map.eclipse.plugin.init">
|
---|
365 | <echo message="The Eclipse Fragment property args.eclipsehelp.language was not set. "/>
|
---|
366 | </target>
|
---|
367 |
|
---|
368 | <target name="dita.map.eclipse.fragment.move.files"
|
---|
369 | if="old.transform">
|
---|
370 | <defaultexcludes add="**/META-INF/**"/>
|
---|
371 | <defaultexcludes add="**/nl/**"/>
|
---|
372 | <delete file="${output.dir}${file.separator}plugin.xml"/>
|
---|
373 | <delete file="${output.dir}${file.separator}plugincustomization.ini"/>
|
---|
374 | <move todir="${dita.map.output.dir}${file.separator}${fragment.dirname}" includeemptydirs="yes">
|
---|
375 | <fileset dir="${dita.map.output.dir}" defaultexcludes="yes">
|
---|
376 | <exclude name="helpData.xml"/>
|
---|
377 | <exclude name="plugin.properties"/>
|
---|
378 | <exclude name="plugin_${fragment.property.name}.properties"/>
|
---|
379 | <exclude name="*.list"/>
|
---|
380 | <exclude name="disabled_book.css"/>
|
---|
381 | <exclude name="narrow_book.css"/>
|
---|
382 | <exclude name="${os}_narrow_book.css"/>
|
---|
383 | <exclude name="book.css"/>
|
---|
384 | <exclude name="plugincustomization.ini"/>
|
---|
385 | </fileset>
|
---|
386 | </move>
|
---|
387 | <move file="${output.dir}${file.separator}plugin.properties" tofile="${output.dir}${file.separator}plugin_${fragment.property.name}.properties" failonerror="no"/>
|
---|
388 |
|
---|
389 |
|
---|
390 | </target>
|
---|
391 |
|
---|
392 | <target name="dita.out.map.eclipse.fragment.move.files"
|
---|
393 | if="inner.transform">
|
---|
394 | <defaultexcludes add="**/META-INF/**"/>
|
---|
395 | <defaultexcludes add="**/nl/**"/>
|
---|
396 | <delete file="${output.dir}${file.separator}plugin.xml"/>
|
---|
397 | <delete file="${output.dir}${file.separator}plugincustomization.ini"/>
|
---|
398 | <move todir="${output.dir}${file.separator}${fragment.dirname}" includeemptydirs="yes">
|
---|
399 | <fileset dir="${output.dir}" defaultexcludes="yes">
|
---|
400 | <exclude name="helpData.xml"/>
|
---|
401 | <exclude name="plugin.properties"/>
|
---|
402 | <exclude name="plugin_${fragment.property.name}.properties"/>
|
---|
403 | <exclude name="*.list"/>
|
---|
404 | <exclude name="disabled_book.css"/>
|
---|
405 | <exclude name="narrow_book.css"/>
|
---|
406 | <exclude name="${os}_narrow_book.css"/>
|
---|
407 | <exclude name="book.css"/>
|
---|
408 | <exclude name="plugincustomization.ini"/>
|
---|
409 | </fileset>
|
---|
410 | </move>
|
---|
411 | <move file="${output.dir}${file.separator}plugin.properties" tofile="${output.dir}${file.separator}plugin_${fragment.property.name}.properties" failonerror="no"/>
|
---|
412 | </target>
|
---|
413 |
|
---|
414 | <!--<target name="dita.map.eclipse"
|
---|
415 | depends="dita.map.eclipse.init,
|
---|
416 | dita.map.eclipse.toc,
|
---|
417 | dita.map.eclipse.index,
|
---|
418 | dita.map.eclipse.plugin,
|
---|
419 | dita.out.map.eclipse.toc,
|
---|
420 | dita.out.map.eclipse.index,
|
---|
421 | dita.out.map.eclipse.plugin" />
|
---|
422 | -->
|
---|
423 |
|
---|
424 | <target name="dita.map.eclipse.generate.plugin"
|
---|
425 | depends="dita.map.eclipse.toc,
|
---|
426 | dita.map.eclipse.index,
|
---|
427 | dita.map.eclipse.plugin,
|
---|
428 | dita.map.eclipse.plugin.properties,
|
---|
429 | dita.map.eclipse.manifest.file,
|
---|
430 | dita.out.map.eclipse.plugin.properties,
|
---|
431 | dita.out.map.eclipse.manifest.file,
|
---|
432 | dita.out.map.eclipse.toc,
|
---|
433 | dita.out.map.eclipse.index,
|
---|
434 | dita.out.map.eclipse.plugin"
|
---|
435 | >
|
---|
436 |
|
---|
437 | </target>
|
---|
438 |
|
---|
439 |
|
---|
440 |
|
---|
441 | <target name="dita.map.eclipse.genetrate.fragment"
|
---|
442 | depends="dita.map.eclipse.toc,
|
---|
443 | dita.map.eclipse.index,
|
---|
444 | dita.map.eclipse.plugin.properties,
|
---|
445 | dita.map.eclipse.manifest.file,
|
---|
446 | dita.out.map.eclipse.plugin.properties,
|
---|
447 | dita.out.map.eclipse.manifest.file,
|
---|
448 | dita.out.map.eclipse.toc,
|
---|
449 | dita.out.map.eclipse.index,
|
---|
450 | dita.out.map.eclipse.plugin,
|
---|
451 | dita.map.eclipse.fragment.move.files,
|
---|
452 | dita.out.map.eclipse.fragment.move.files">
|
---|
453 |
|
---|
454 | </target>
|
---|
455 |
|
---|
456 | <!-- depecrated: keep for back-compatibility, will be remvoed in a later release -->
|
---|
457 | <target name="dita.topics.eclipse" depends="dita.topics.xhtml" />
|
---|
458 |
|
---|
459 | <target name="copy-plugin-files">
|
---|
460 | <!-- Look for files that override behavior in Eclipse plugins -->
|
---|
461 | <!-- <echo>* dita.input.dirname = ${user.input.dir}</echo> -->
|
---|
462 | <copy todir="${output.dir}">
|
---|
463 | <fileset dir="${user.input.dir}">
|
---|
464 | <include name="disabled_book.css"/>
|
---|
465 | <include name="narrow_book.css"/>
|
---|
466 | <include name="${os}_narrow_book.css"/>
|
---|
467 | <include name="book.css"/>
|
---|
468 | <include name="plugincustomization.ini"/>
|
---|
469 | <include name="helpData.xml"/>
|
---|
470 | </fileset>
|
---|
471 |
|
---|
472 | </copy>
|
---|
473 | </target>
|
---|
474 |
|
---|
475 | </project>
|
---|