-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (51 loc) · 1.73 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
<?xml version="1.0" encoding="utf-8" ?>
<project name="apt-relabelling" default="jar" basedir=".">
<path id="lib">
<pathelement location="submodules/apt/apt.jar"/>
</path>
<target name="build-apt">
<ant dir="submodules/apt" target="jar"/>
</target>
<target name="javac" depends="build-apt">
<mkdir dir="classes/" />
<depend srcdir="src/" destdir="classes/" />
<javac includes="**" encoding="utf-8" destdir="classes" source="1.7" target="1.7" debug="true" includeantruntime="false">
<src path="src"/>
<classpath refid="lib"/>
<compilerarg value="-Xlint:all"/>
</javac>
</target>
<target name="jar" depends="javac">
<jar destfile="apt-unsolvable-generator.jar" duplicate="fail">
<fileset dir="classes">
<include name="uniol/apt/relabelling/UnsolvableGenerator.class"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="uniol.apt.relabelling.UnsolvableGenerator" />
</manifest>
</jar>
<jar destfile="apt-relabelling-light.jar" duplicate="fail">
<fileset dir="classes"/>
<manifest>
<attribute name="Main-Class" value="uniol.apt.APT" />
<attribute name="Class-Path" value="submodules/apt/apt.jar" />
</manifest>
</jar>
<jar destfile="apt-relabelling.jar" duplicate="fail">
<zipfileset src="submodules/apt/apt.jar">
<exclude name="META-INF/services/uniol.apt.module.Module"/>
</zipfileset>
<fileset dir="classes"/>
<manifest>
<attribute name="Main-Class" value="uniol.apt.APT" />
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="classes" />
<delete file="apt-relabelling-light.jar" />
<delete file="apt-relabelling.jar" />
<ant dir="submodules/apt" target="clean"/>
</target>
<import file="build.local.xml" optional="true"/>
</project>