-
Notifications
You must be signed in to change notification settings - Fork 1
/
process_css_extend_template.xml
55 lines (50 loc) · 1.55 KB
/
process_css_extend_template.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!--ant-->
<!--
This file is part of the DITA-OT Extend CSS Plug-in project.
See the accompanying LICENSE file for applicable licenses.
-->
<project
xmlns:if="ant:if"
xmlns:unless="ant:unless"
xmlns:dita="http://dita-ot.sourceforge.net"
name="fox.jason.extend.css"
>
<target name="extend.css.init">
<mkdir dir="${dita.temp.dir}"/>
<tempfile
deleteonexit="true"
destdir="${dita.temp.dir}"
property="extend.css.file"
suffix=".css"
createfile="true"
/>
</target>
<target name="extend.css.copy">
<local name="is.html.transform"/>
<local name="extend.css.path"/>
<condition property="is.html.transform">
<or>
<equals arg1="${out.ext}" arg2=".html"/>
<!-- add any additional missing transtypes here -->
<contains string="${transtype}" substring="HTML" casesensitive="no"/>
<contains string="${transtype}" substring="eclipsehelp" casesensitive="no"/>
</or>
</condition>
<condition property="extend.css.path" value="${user.csspath}" else="">
<isset property="user.csspath"/>
</condition>
<copy
if:set="is.html.transform"
tofile="${output.dir}/${extend.css.path}/common-extended.css"
file="${extend.css.file}"
overwrite="true"
/>
</target>
<target
name="extend.css"
dita:depends="extend.css.init,{extend.css.process.pre},{extend.css.process},{extend.css.process.post},extend.css.copy"
dita:extension="depends org.dita.dost.platform.InsertDependsAction"
description="Generate an extended CSS file"
/>
</project>