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="nokia2xhtml"> |
|
7 |
|
8 <dirname property="nokia2xhtml.dir" file="${ant.file.nokia2xhtml}"/> |
|
9 |
|
10 <target name="dita2xhtml.nokia" depends="dita2xhtml.nokia.init, dita2xhtml"> |
|
11 <copy todir="${output.dir}"> |
|
12 <fileset dir="${nokia2xhtml.dir}"> |
|
13 <include name="css${file.separator}**"/> |
|
14 <include name="images${file.separator}**"/> |
|
15 </fileset> |
|
16 </copy> |
|
17 </target> |
|
18 |
|
19 <target name="dita2xhtml.nokia.init"> |
|
20 <tstamp> |
|
21 <format property="nokia.STAMP" pattern="yyyyMMddHHmmssSSS" timezone="UTC"/> |
|
22 <format property="nokia.timestamp" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'" timezone="UTC"/> |
|
23 <format property="nokia.datestamp" pattern="yyyy-MM-dd" timezone="UTC"/> |
|
24 <format property="nokia.yearstamp" pattern="yyyy" timezone="UTC"/> |
|
25 </tstamp> |
|
26 <condition property="transtype.ext" value="_eclipsehelp.xsl" else=".xsl"> |
|
27 <equals arg1="eclipsehelp.nokia" arg2="${transtype}" casesensitive="no"/> |
|
28 </condition> |
|
29 <condition property="args.xsl" value="${nokia2xhtml.dir}${file.separator}xsl${file.separator}dita2xhtml.nokia${transtype.ext}"> |
|
30 <not> |
|
31 <isset property="args.xsl"/> |
|
32 </not> |
|
33 </condition> |
|
34 <condition property="user.csspath" value="css/"> |
|
35 <not> |
|
36 <isset property="user.csspath"/> |
|
37 </not> |
|
38 </condition> |
|
39 </target> |
|
40 |
|
41 <!-- |
|
42 <target name="dita.map.xhtml.nokia" |
|
43 depends="dita.map.xhtml.init, dita.map.xhtml.toc, dita.out.map.xhtml.toc" /> |
|
44 --> |
|
45 <target name="dita2eclipsehelp.nokia" unless="noMap" |
|
46 depends="dita2xhtml.nokia.init, build-init, preprocess, copy-css, dita.topics.xhtml, dita.inner.topics.xhtml, dita.outer.topics.xhtml"> |
|
47 <antcall target="dita.map.eclipse"/> |
|
48 <copy todir="${output.dir}"> |
|
49 <fileset dir="${nokia2xhtml.dir}"> |
|
50 <include name="css${file.separator}*.css"/> |
|
51 </fileset> |
|
52 </copy> |
|
53 </target> |
|
54 |
|
55 </project> |
|