forked from Sitwon/css3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integrator.xml
67 lines (59 loc) · 2.21 KB
/
integrator.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
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<project name="dita2css3" default="dita2css3">
<condition property="css3.dir" value="plugins${file.separator}css3">
<not>
<isset property="css3.dir"/>
</not>
</condition>
<target name="dita2css3"
depends="build-init, preprocess">
<property name="css3.merged.file" value="${output.dir}${file.separator}index-single.html"/>
<antcall target="css3.pdf" />
</target>
<target name="css3.xhtml-split"
depends="dita.map.xhtml, copy-revflag, copy-css, dita.topics.xhtml, dita.inner.topics.xhtml, dita.outer.topics.xhtml">
</target>
<target name="css3.xhtml-single"
depends="css3.xhtml-split, css3.topicmerge">
</target>
<target name="css3.pdf" depends="css3.xhtml-single, css3.xhtml2pdf">
</target>
<target name="css3.topicmerge">
<replaceregexp byline="false" replace="">
<regexp pattern='<!DOCTYPE html\n PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'/>
<fileset dir="${output.dir}" includes="**/*.html"/>
</replaceregexp>
<xslt processor="trax" in="${output.dir}${file.separator}index.html"
out="${css3.merged.file}"
style="${css3.dir}${file.separator}xsl${file.separator}merge_xhtml.xsl">
</xslt>
</target>
<target name="css3.xhtml2pdf">
<condition property="css3.stylesheet"
value="${css3.dir}${file.separator}css${file.separator}paginated.css">
<not>
<isset property="css3.stylesheet"/>
</not>
</condition>
<exec executable="${env.AHF_DIR}${file.separator}AHFCmd.exe" osfamily="windows" failonerror="true">
<arg value="-d"/>
<arg value="${css3.merged.file}"/>
<arg value="-s"/>
<arg value="${css3.stylesheet}"/>
<arg value="-o"/>
<arg value="${output.dir}${file.separator}${dita.map.filename.root}.pdf"/>
<arg value="-x"/>
<arg value="4"/>
</exec>
<exec executable="${env.AHF_DIR}${file.separator}run.sh" osfamily="unix" failonerror="true">
<arg value="-d"/>
<arg value="${css3.merged.file}"/>
<arg value="-s"/>
<arg value="${css3.stylesheet}"/>
<arg value="-o"/>
<arg value="${output.dir}${file.separator}${dita.map.filename.root}.pdf"/>
<arg value="-x"/>
<arg value="4"/>
</exec>
</target>
</project>