-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess_watermark.xml
More file actions
61 lines (53 loc) · 1.77 KB
/
Copy pathprocess_watermark.xml
File metadata and controls
61 lines (53 loc) · 1.77 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!--ant-->
<!--
This file is part of the DITA Bootstrap Watermark plug-in for DITA Open Toolkit.
See the accompanying LICENSE file for applicable licenses.
-->
<project
name="fox.jason.dita-bootstrap.watermark"
xmlns:if="ant:if"
xmlns:unless="ant:unless"
>
<!--
Setting up Watermark processing. Sets up ANT variables
-->
<target name="bootstrap.watermark.init" description="Setting up watermark processing">
<property name="is.Bootstrap" value="true"/>
<property name="bootstrap.watermark" value="draft"/>
<condition property="bootstrap.watermark.ftr.include" value="yes">
<and>
<or>
<equals arg1="${bootstrap.watermark}" arg2="draft"/>
<equals arg1="${bootstrap.watermark}" arg2="review"/>
<equals arg1="${bootstrap.watermark}" arg2="final"/>
</or>
<istrue value="${is.Bootstrap}"/>
</and>
</condition>
<condition property="bootstrap.watermark.css.include" value="yes">
<or>
<equals arg1="${bootstrap.watermark}" arg2="draft"/>
<equals arg1="${bootstrap.watermark}" arg2="review"/>
</or>
</condition>
<property
if:set="bootstrap.watermark.ftr.include"
name="bootstrap.sidebar.ftr"
value="${dita.plugin.fox.jason.dita-bootstrap.watermark.dir}/includes/${bootstrap.watermark}.xml"
/>
</target>
<target
if="bootstrap.watermark.css.include"
name="bootstrap.watermark.css.copy">
<loadfile
property="bootstrap.watermark.css"
srcFile="${dita.plugin.fox.jason.dita-bootstrap.watermark.dir}/css/${bootstrap.watermark}.css"
/>
<echo
append="true"
message="${line.separator}${bootstrap.watermark.css}"
file="${extend.css.file}"
/>
</target>
</project>