-
Notifications
You must be signed in to change notification settings - Fork 55
/
build.xml
87 lines (72 loc) · 2.6 KB
/
build.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="userguide" default="build.userguide">
<property name="project.name" value="bpmn"/>
<target name="build.userguide" depends="build.docs.distro" />
<target name="clean.all" description="Cleans up all generated files.">
<delete dir="target" />
<antcall target="clean">
<param name="project.name" value="all"/>
</antcall>
</target>
<target name="build.docs.form">
<antcall target="build.docs">
<param name="project.name" value="form"/>
</antcall>
</target>
<target name="build.docs.single">
<antcall target="build.docs">
<param name="project.name" value="single"/>
</antcall>
</target>
<target name="build.docs.bpmn">
<antcall target="build.docs">
<param name="project.name" value="bpmn"/>
</antcall>
</target>
<target name="build.docs.cmmn">
<antcall target="build.docs">
<param name="project.name" value="cmmn"/>
</antcall>
</target>
<target name="build.docs.dmn">
<antcall target="build.docs">
<param name="project.name" value="dmn"/>
</antcall>
</target>
<!-- Only Distro Docs -->
<target name="build.docs.distro" depends="clean.all">
<antcall target="build.docs.bpmn"/>
<antcall target="build.docs.cmmn"/>
<antcall target="build.docs.dmn"/>
<antcall target="build.docs.form"/>
</target>
<!-- All docs even project in progress. -->
<target name="build.docs.all" depends="clean.all">
<antcall target="build.docs.single"/>
<antcall target="build.docs.bpmn"/>
<antcall target="build.docs.cmmn"/>
<antcall target="build.docs.dmn"/>
<antcall target="build.docs.form"/>
</target>
<target name="clean" description="Cleans up generated files.">
<exec dir="scripts" executable="cmd">
<arg value="/c"/>
<arg value="clean.bat"/>
<arg value="${project.name}"/>
</exec>
</target>
<target name="build.docs" depends="clean">
<mkdir dir="target/html" />
<exec dir="scripts" executable="cmd">
<arg value="/c"/>
<arg value="generate-html.bat"/>
<arg value="${project.name}"/>
</exec>
<mkdir dir="src/zh_CN/${project.name}/output" />
<copy todir="target/html/zh_CN/${project.name}">
<fileset dir="src/zh_CN/${project.name}/output">
<include name="**/**" />
</fileset>
</copy>
</target>
</project>