|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 All rights reserved. |
|
5 --> |
|
6 <project name="cxxapiref2xhtml"> |
|
7 |
|
8 <dirname property="cxxapiref2xhtml.dir" file="${ant.file.cxxapiref2xhtml}"/> |
|
9 |
|
10 <!-- |
|
11 <target name="dita2xhtml.cxxapiref" depends="dita2xhtml.cxxapiref.init, dita2xhtml"> |
|
12 <copy todir="${output.dir}"> |
|
13 <fileset dir="${cxxapiref2xhtml.dir}"> |
|
14 <include name="css${file.separator}*.css"/> |
|
15 </fileset> |
|
16 </copy> |
|
17 </target> |
|
18 |
|
19 <target name="dita2xhtml.cxxapiref.init"> |
|
20 <condition property="transtype.ext" value="_eclipsehelp.xsl" else=".xsl"> |
|
21 <or> |
|
22 <equals arg1="eclipsehelp" arg2="${transtype}" casesensitive="no"/> |
|
23 <equals arg1="eclipsehelp.cxxapiref" arg2="${transtype}" casesensitive="no"/> |
|
24 </or> |
|
25 </condition> |
|
26 <condition property="args.xsl" value="${cxxapiref2xhtml.dir}${file.separator}xsl${file.separator}cxxapiref2xhtml${transtype.ext}"> |
|
27 <not> |
|
28 <isset property="args.xsl"/> |
|
29 </not> |
|
30 </condition> |
|
31 </target> |
|
32 --> |
|
33 |
|
34 <target name="cxxapiref.preprocess.sort" unless="cxxapiref.preprocess.sort.skip" |
|
35 description="Sort C++ API map"> |
|
36 <!--dirname property="cxxapiref.sort.workdir" file="${dita.temp.dir}${file.separator}${user.input.file}"/--> |
|
37 <condition property="cxxapiref.preprocess.reloadstylesheet.sort" value="${dita.preprocess.reloadstylesheet}"> |
|
38 <not> |
|
39 <isset property="cxxapiref.preprocess.reloadstylesheet.sort"/> |
|
40 </not> |
|
41 </condition> |
|
42 <xslt basedir="${dita.temp.dir}" |
|
43 destdir="${dita.temp.dir}" |
|
44 includesfile="${dita.temp.dir}${file.separator}${fullditamapfile}" |
|
45 extension=".ditamap.sort" |
|
46 classpathref="dost.class.path" |
|
47 reloadstylesheet="${cxxapiref.preprocess.reloadstylesheet.sort}" |
|
48 style="${cxxapiref2xhtml.dir}${file.separator}xsl${file.separator}cxxapiref-sort.xsl"> |
|
49 <param name="DITAEXT" expression="${dita.ext}" if="dita.ext"/> |
|
50 <param name="TRANSTYPE" expression="${transtype}"/> |
|
51 </xslt> |
|
52 <move overwrite="true" todir="${dita.temp.dir}"> |
|
53 <fileset dir="${dita.temp.dir}" includes="**/*.ditamap.sort"/> |
|
54 <mapper type="glob" from="*.ditamap.sort" to="*.ditamap"/> |
|
55 </move> |
|
56 </target> |
|
57 |
|
58 </project> |