-
Notifications
You must be signed in to change notification settings - Fork 1
/
preprocess-extensions.xml
102 lines (71 loc) · 3.84 KB
/
preprocess-extensions.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="utf-8"?><project basedir="." name="preprocess-map-first">
<!-- ==========================================
DITA Community Map-First Preprocessing
Rearchitects the Open Toolkit preprocessing pipeline
to do all map processing first, then do processing
of topics to resolve conrefs, apply filtering,
and create temporary topic files reflecting any
copy-to and chunking defined in the map.
========================================== -->
<loadproperties srcfile="${dita.dir}/lib/configuration.properties"></loadproperties>
<condition property="isOT1.8.5">
<equals arg1="${otversion}" arg2="1.8.5"></equals>
</condition>
<condition property="otmajorversion" value="1">
<matches string="${otversion}" pattern="^1\.8\."></matches>
</condition>
<condition property="otmajorversion" value="2">
<matches string="${otversion}" pattern="^2\."></matches>
</condition>
<condition property="otshortversion" value="2.2">
<matches string="${otversion}" pattern="^2\.2\."></matches>
</condition>
<condition property="otshortversion" value="2.1">
<matches string="${otversion}" pattern="^2\.1\."></matches>
</condition>
<condition property="otshortversion" value="2">
<matches string="${otversion}" pattern="^2\.0\."></matches>
</condition>
<condition property="otshortversion" value="1.8">
<matches string="${otversion}" pattern="^1\.8\."></matches>
</condition>
<condition property="otshortversion" value="1.7">
<matches string="${otversion}" pattern="^1\.7\."></matches>
</condition>
<condition property="isOT2">
<matches string="${otversion}" pattern="^2\."></matches>
</condition>
<condition property="isOT2.2">
<matches string="${otversion}" pattern="^2\.2\."></matches>
</condition>
<target name="dc-preprocess" depends="preprocess-ot2.2, dc-preprocess-ot1.8.5">
<echo>otversion="${otversion}"</echo>
<echo>otmajorversion="${otmajorversion}"</echo>
<echo>otshortversion="${otshortversion}"</echo>
<echo>isOT1.8.5="${isOT1.8.5}"</echo>
<echo>isOT2="${isOT2}"</echo>
<echo>isOT2.2="${isOT2.2}"</echo>
</target>
<!-- Stub targets for targets in 2.x but not 1.8.5: -->
<target name="preprocess.init"></target>
<target name="branch-filter"></target>
<target name="profile"></target>
<target name="topic-fragment"></target>
<target name="clean-map"></target>
<!-- Stub targets for targets in 1.8.5 but not 2.x: -->
<target name="mappull"></target>
<target name="move-links"></target>
<target name="dc-preprocess-ot1.8.5" if="isOT1.8.5" description="DITA Community map-first preprocessing" depends="gen-list,debug-filter,copy-files,conrefpush,conref,move-meta-entries,keyref,coderef,mapref,mappull,dc-adjust-copy-to,chunk,maplink,move-links,topicpull,flag-module">
<!-- This target replaces the base OT preprocess.
-->
</target>
<!-- This variant of dc-preprocess process the map before doing
any other preprocessing.
-->
<target name="dc-preprocess-map-first-ot1.8.5" if="isOT1.8.5" description="DITA Community map-first preprocessing" depends="gen-list,debug-filter,mapref,mappull,dc-adjust-copy-to,copy-files,conref,conrefpush,move-meta-entries,keyref,coderef,chunk,maplink,move-links,topicpull,flag-module">
<!-- This target replaces the base OT preprocess.
-->
</target>
<!-- THis is the same for OT 2.1 and 2.2 -->
<target name="preprocess-ot2.2" if="isOT2" depends="preprocess.init,gen-list,debug-filter,mapref,branch-filter,copy-files,keyref,conrefpush,conref,profile,topic-fragment,coderef,move-meta-entries,chunk,maplink,topicpull,flag-module,clean-map" description="Preprocessing ended"></target>
</project>