-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.xml
172 lines (150 loc) · 11.1 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<project name="jarsBuilder" default="metafast">
<property name="VERSION" value="1.4.0"/>
<exec executable="git" outputproperty="revision">
<arg value="rev-parse"/>
<arg value="--short"/>
<arg value="HEAD"/>
</exec>
<exec executable="git" outputproperty="changes">
<arg value="status"/>
<arg value="-s"/>
<arg value="-uno"/>
</exec>
<tstamp>
<format property="TODAY" pattern="dd-MMM-yyyy" locale="en"/>
</tstamp>
<tstamp>
<format property="TODAY_TS" pattern="dd-MMM-yyyy HH:mm" locale="en"/>
</tstamp>
<condition property="version"
value="${VERSION} (revision ${revision}, ${TODAY})"
else ="${VERSION} (revision ${revision}+ changes, ${TODAY_TS})" >
<equals arg1="${changes}" arg2=""/>
</condition>
<echo message="${version}" file="VERSION"/>
<echo message="Version: ${version}"/>
<property name="src.dir" value="src"/>
<property name="bin.dir" value="out/bin"/>
<property name="jars.dir" value="out"/>
<property name="itmo-assembler.path" value="lib/itmo-assembler.jar"/>
<property name="commons-math3.path" value="lib/commons-math3-3.6.1.jar"/>
<property name="args4j.path" value="lib/args4j-2.0.21.jar"/>
<property name="batik-all-1.11.path" value="lib/batik/batik-all-1.11.jar"/>
<property name="batik-anim-1.11.path" value="lib/batik/batik-anim-1.11.jar"/>
<property name="batik-awt-util-1.11.path" value="lib/batik/batik-awt-util-1.11.jar"/>
<property name="batik-bridge-1.11.path" value="lib/batik/batik-bridge-1.11.jar"/>
<property name="batik-codec-1.11.path" value="lib/batik/batik-codec-1.11.jar"/>
<property name="batik-constants-1.11.path" value="lib/batik/batik-constants-1.11.jar"/>
<property name="batik-css-1.11.path" value="lib/batik/batik-css-1.11.jar"/>
<property name="batik-dom-1.11.path" value="lib/batik/batik-dom-1.11.jar"/>
<property name="batik-ext-1.11.path" value="lib/batik/batik-ext-1.11.jar"/>
<property name="batik-extension-1.11.path" value="lib/batik/batik-extension-1.11.jar"/>
<property name="batik-gui-util-1.11.path" value="lib/batik/batik-gui-util-1.11.jar"/>
<property name="batik-gvt-1.11.path" value="lib/batik/batik-gvt-1.11.jar"/>
<property name="batik-i18n-1.11.path" value="lib/batik/batik-i18n-1.11.jar"/>
<property name="batik-parser-1.11.path" value="lib/batik/batik-parser-1.11.jar"/>
<property name="batik-script-1.11.path" value="lib/batik/batik-script-1.11.jar"/>
<property name="batik-svgbrowser-1.11.path" value="lib/batik/batik-svgbrowser-1.11.jar"/>
<property name="batik-svg-dom-1.11.path" value="lib/batik/batik-svg-dom-1.11.jar"/>
<property name="batik-svggen-1.11.path" value="lib/batik/batik-svggen-1.11.jar"/>
<property name="batik-svgrasterizer-1.11.path" value="lib/batik/batik-svgrasterizer-1.11.jar"/>
<property name="batik-swing-1.11.path" value="lib/batik/batik-swing-1.11.jar"/>
<property name="batik-test-1.11.path" value="lib/batik/batik-test-1.11.jar"/>
<property name="batik-test-svg-1.11.path" value="lib/batik/batik-test-svg-1.11.jar"/>
<property name="batik-test-swing-1.11.path" value="lib/batik/batik-test-swing-1.11.jar"/>
<property name="batik-transcoder-1.11.path" value="lib/batik/batik-transcoder-1.11.jar"/>
<property name="batik-util-1.11.path" value="lib/batik/batik-util-1.11.jar"/>
<property name="batik-util-1.11-tests.path" value="lib/batik/batik-util-1.11-tests.jar"/>
<property name="batik-xml-1.11.path" value="lib/batik/batik-xml-1.11.jar"/>
<property name="fop-transcoder-allinone-2.3.path" value="lib/batik/fop-transcoder-allinone-2.3.jar"/>
<property name="js.path" value="lib/batik/js.jar"/>
<property name="serializer-2.7.2.path" value="lib/batik/serializer-2.7.2.jar"/>
<property name="xalan-2.7.2.path" value="lib/batik/xalan-2.7.2.jar"/>
<property name="xercesImpl-2.9.1.path" value="lib/batik/xercesImpl-2.9.1.jar"/>
<property name="xml-apis-1.3.04.path" value="lib/batik/xml-apis-1.3.04.jar"/>
<property name="xml-apis-ext-1.3.04.path" value="lib/batik/xml-apis-ext-1.3.04.jar"/>
<property name="xmlgraphics-commons-2.3.path" value="lib/batik/xmlgraphics-commons-2.3.jar"/>
<property name="project.main" value="Runner"/>
<property name="project.name" value="metafast"/>
<property name="project.jar" value="${jars.dir}/${project.name}.jar"/>
<property name="project.sh" value="${jars.dir}/${project.name}.sh"/>
<property name="project.bat" value="${jars.dir}/${project.name}.bat"/>
<property name="ant.build.javac.source" value="1.8"/>
<property name="ant.build.javac.target" value="1.8"/>
<target name="metafast">
<mkdir dir="${bin.dir}"/>
<javac srcdir="${src.dir}"
destdir="${bin.dir}"
classpath="${itmo-assembler.path}:${commons-math3.path}:${args4j.path}:${batik-all-1.11.path}:${batik-anim-1.11.path}:${batik-awt-util-1.11.path}:${batik-bridge-1.11.path}:${batik-codec-1.11.path}:${batik-constants-1.11.path}:${batik-css-1.11.path}:${batik-dom-1.11.path}:${batik-ext-1.11.path}:${batik-extension-1.11.path}:${batik-gui-util-1.11.path}:${batik-gvt-1.11.path}:${batik-i18n-1.11.path}:${batik-parser-1.11.path}:${batik-script-1.11.path}:${batik-svgbrowser-1.11.path}:${batik-svg-dom-1.11.path}:${batik-svggen-1.11.path}:${batik-svgrasterizer-1.11.path}:${batik-swing-1.11.path}:${batik-test-1.11.path}:${batik-test-svg-1.11.path}:${batik-test-swing-1.11.path}:${batik-transcoder-1.11.path}:${batik-util-1.11.path}:${batik-util-1.11-tests.path}:${batik-xml-1.11.path}:${fop-transcoder-allinone-2.3.path}:${js.path}:${serializer-2.7.2.path}:${xalan-2.7.2.path}:${xercesImpl-2.9.1.path}:${xml-apis-1.3.04.path}:${xml-apis-ext-1.3.04.path}:${xmlgraphics-commons-2.3.path}"
includeantruntime="false"
debug="true"
debuglevel="lines,vars,source">
</javac>
<exec executable="java" failonerror="true">
<arg value="-ea"/>
<arg value="-cp"/>
<arg value="${bin.dir}:${itmo-assembler.path}:${commons-math3.path}:${args4j.path}:${batik-all-1.11.path}:${batik-anim-1.11.path}:${batik-awt-util-1.11.path}:${batik-bridge-1.11.path}:${batik-codec-1.11.path}:${batik-constants-1.11.path}:${batik-css-1.11.path}:${batik-dom-1.11.path}:${batik-ext-1.11.path}:${batik-extension-1.11.path}:${batik-gui-util-1.11.path}:${batik-gvt-1.11.path}:${batik-i18n-1.11.path}:${batik-parser-1.11.path}:${batik-script-1.11.path}:${batik-svgbrowser-1.11.path}:${batik-svg-dom-1.11.path}:${batik-svggen-1.11.path}:${batik-svgrasterizer-1.11.path}:${batik-swing-1.11.path}:${batik-test-1.11.path}:${batik-test-svg-1.11.path}:${batik-test-swing-1.11.path}:${batik-transcoder-1.11.path}:${batik-util-1.11.path}:${batik-util-1.11-tests.path}:${batik-xml-1.11.path}:${fop-transcoder-allinone-2.3.path}:${js.path}:${serializer-2.7.2.path}:${xalan-2.7.2.path}:${xercesImpl-2.9.1.path}:${xml-apis-1.3.04.path}:${xml-apis-ext-1.3.04.path}:${xmlgraphics-commons-2.3.path}"/>
<arg value="ToolsScanner"/>
</exec>
<jar destfile="${project.jar}"
basedir="${bin.dir}" duplicate="preserve">
<manifest>
<attribute name="Main-Class" value="${project.main}"/>
</manifest>
<zipfileset src="${commons-math3.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${args4j.path}" excludes="META-INF/*.SF"/>
<fileset file="VERSION"/>
<fileset file="TOOLS"/>
<zipfileset src="${itmo-assembler.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-all-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-anim-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-awt-util-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-bridge-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-codec-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-constants-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-css-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-dom-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-ext-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-extension-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-gui-util-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-gvt-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-i18n-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-parser-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-script-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-svgbrowser-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-svg-dom-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-svggen-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-svgrasterizer-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-swing-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-test-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-test-svg-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-test-swing-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-transcoder-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-util-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-util-1.11-tests.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${batik-xml-1.11.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${fop-transcoder-allinone-2.3.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${js.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${serializer-2.7.2.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${xalan-2.7.2.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${xercesImpl-2.9.1.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${xml-apis-1.3.04.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${xml-apis-ext-1.3.04.path}" excludes="META-INF/*.SF"/>
<zipfileset src="${xmlgraphics-commons-2.3.path}" excludes="META-INF/*.SF"/>
</jar>
<concat destfile="${project.sh}" binary="true">
<filelist files="src/stub.sh,${project.jar}"/>
</concat>
<chmod file="${project.sh}" perm="a+x"/>
<concat destfile="${project.bat}" binary="true">
<filelist files="src/stub.bat,${project.jar}"/>
</concat>
<delete dir="${bin.dir}"/>
</target>
<target name="clean">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${bin.dir}"/>
<fileset dir="${jars.dir}"/>
</delete>
</target>
</project>