-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.xml
72 lines (65 loc) · 2.53 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
<project name="GATE" xmlns:artifact="antlib:org.eclipse.aether.ant">
<description>Miscellaneous Ant tasks to help with bits of the build that don't have Maven plugins.</description>
<property name="src.dir" location="src/main/java" />
<property name="svg.dir" location="src/main/svg" />
<property name="svg.lib" location="build/lib" />
<target name="init">
<mkdir dir="antlib" />
<get src="http://search.maven.org/remotecontent?filepath=org/eclipse/aether/aether-ant-tasks/1.0.0.v20140518/aether-ant-tasks-1.0.0.v20140518-uber.jar"
dest="antlib/aether-ant-tasks-uber.jar" verbose="true" skipexisting="true"/>
<fail message="Checksum mismatch for 'antlib/aether-ant-tasks-uber.jar'. Please delete it and rerun ant to redownload.">
<condition>
<not>
<checksum file="antlib/aether-ant-tasks-uber.jar" algorithm="SHA"
property="95dadd03392a75564904da45108cf048abe6e5bb" verifyproperty="checksum.matches"/>
</not>
</condition>
</fail>
<typedef resource="org/eclipse/aether/ant/antlib.xml"
uri="antlib:org.eclipse.aether.ant"
classpath="antlib/aether-ant-tasks-uber.jar"/>
<artifact:pom file="pom.xml" />
<artifact:resolve>
<path refid="cp.runtime" classpath="runtime"/>
</artifact:resolve>
</target>
<target name="svg2java" depends="init">
<java fork="true" classname="englishcoffeedrinker.svg.in.SVGBatchConverter" failonerror="true">
<jvmarg value="-Xmx512m" />
<jvmarg value="-Djava.awt.headless=true" />
<classpath>
<fileset dir="${svg.lib}">
<include name="**/*.jar" />
</fileset>
<path refid="cp.runtime" />
</classpath>
<arg value="-e" />
<arg value="-n" />
<arg value="+Icon" />
<arg value="-o" />
<arg value="${src.dir}" />
<arg value="-p" />
<arg value="gate.resources.img.svg" />
<arg value="-t" />
<arg value="scalable" />
<arg value="${svg.dir}" />
</java>
</target>
<target name="icon">
<java fork="true" classname="org.apache.batik.apps.rasterizer.Main" failonerror="true">
<classpath>
<fileset dir="${svg.lib}">
<include name="**/*.jar" />
</fileset>
</classpath>
<arg value="-d" />
<arg file="distro/build/deploy/gate-icon.png" />
<arg value="-w" />
<arg value="128" />
<arg value="-h" />
<arg value="128" />
<arg value="-scriptSecurityOff" />
<arg file="src/main/svg/GATEVersion.svg" />
</java>
</target>
</project>