forked from richardwilkes/toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
43 lines (37 loc) · 1.4 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="com.trollworks.toolkit" default="build">
<target name="build">
<property name="module.name" value="com.trollworks.toolkit"/>
<property name="module.version" value="5.1.1"/>
<property name="target.version" value="13"/>
<property name="build.dir" value="antbuild"/>
<property name="modules.dir" value="../java_modules"/>
<delete>
<fileset dir="." includes="**/.DS_Store" defaultexcludes="false"/>
</delete>
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${modules.dir}"/>
<delete>
<fileset dir="${modules.dir}" includes="${module.name}*"/>
</delete>
<javac destdir="${build.dir}" includeantruntime="false" modulepath="${modules.dir}" encoding="UTF8" release="${target.version}">
<src path="src"/>
</javac>
<exec executable="jar">
<arg value="--create"/>
<arg value="--file"/>
<arg file="${modules.dir}/${module.name}-${module.version}.jar"/>
<arg value="--module-version"/>
<arg value="${module.version}"/>
<arg value="-C"/>
<arg value="${build.dir}"/>
<arg value="."/>
<arg value="-C"/>
<arg value="resources"/>
<arg value="."/>
</exec>
<delete dir="${build.dir}"/>
<zip destfile="${modules.dir}/${module.name}-${module.version}-src.zip" level="9" basedir="." excludes="bin/**"/>
</target>
</project>