-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·127 lines (103 loc) · 3.52 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·127 lines (103 loc) · 3.52 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<project name="doxygen2dita-ot-plugins" basedir="." default="deploy-toolkit-plugins"
>
<property file="version.properties"/>
<property file="build.properties"/>
<property file="${user.home}/.build.properties"/>
<property file="${user.home}/build.properties"/>
<property name="license.dir" location="${basedir}"/>
<property name="toolkit.plugin.src" location="${basedir}"/>
<property name="temp" location="${basedir}/temp"/>
<property name="dita-ot-dir" location="c:\DITA-OT1.5"/>
<property name="plugin.src" location="${basedir}"/>
<property name="dist" location="${basedir}/dist"/>
<property name="plugin.dist" location="${basedir}/dist/plugins"/>
<property name="package.dist" location="${basedir}/dist/package"/>
<path id="dita-classpath"
>
<fileset dir="${dita-ot-dir}">
<include name="lib"/>
</fileset>
<fileset dir="${dita-ot-dir}/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${dita-ot-dir}/lib/org.dita.dost.platform">
<include name="*.properties"/>
</fileset>
<fileset dir="${dita-ot-dir}/lib/saxon">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="classpath.base">
<pathelement path="${classes.home}"/>
<fileset dir="${lib}">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<buildnumber/>
<tstamp/>
</target>
<tstamp>
<format property="package.date" pattern="yyyy-MM-dd"/>
</tstamp>
<tstamp>
<format property="build-date-time"
pattern="yyyy-MM-dd HH:mm:SSS z"/>
</tstamp>
<target name="clean">
</target>
<target name="add-version-info-to-files">
</target>
<target name="dist-license-info" depends="dist-init">
<!-- No need for project-level license info -->
</target>
<target name="dist-toolkit-plugins" description="Packages the DITA Open Toolkit plugins for deployment to a working Toolkit instance"
depends="
dist-init,
dist-license-info
"
>
<copy todir="${plugin.dist}">
<fileset dir="${basedir}/toolkit_plugins">
<include name="org.dita-community.*/**"/>
<exclude name="*.zip"/>
</fileset>
</copy>
<!-- FIXME: Make this work -->
<!-- <antcall target="add-version-info-to-files"/>-->
</target>
<target name="deploy-toolkit-plugins" depends="dist-toolkit-plugins"
description="Deploy plugins to local DITA Open Toolkit">
<property name="plugin-deploy_target" location="${dita-ot-dir}/plugins"/>
<delete failonerror="true" includeemptydirs="true">
<fileset dir="${plugin-deploy_target}">
<include name="org.dita-community.doxygen*.*/**"/>
</fileset>
</delete>
<mkdir dir="${plugin-deploy_target}"/>
<copy todir="${plugin-deploy_target}">
<fileset dir="${plugin.dist}">
<include name="**/*"/>
</fileset>
</copy>
<!-- Integrate the deployed plugins: -->
<ant antfile="${dita-ot-dir}/integrator.xml" target="integrate"/>
</target>
<target name="dist-init" depends="init">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${dist}" includes="*/**"/>
</delete>
<mkdir dir="${plugin.dist}"/>
</target>
<target name="package-toolkit-plugins" depends="dist-init, dist-toolkit-plugins"
description="Create distributable Zip package of the Toolkit plugins, including the vocabulary modules."
>
<zip destfile="${package.dist}/doxygen2dita-toolkit-plugins-${version}.zip">
<fileset dir="${plugin.dist}">
<include name="*.txt"/>
<include name="*.md"/>
<include name="*/**"/>
</fileset>
</zip>
</target>
</project>