-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (36 loc) · 1.37 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="BoxingProfiler" default="run" basedir=".">
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>
<property name="javac.encoding" value="UTF-8"/>
<property name="java.file.encoding" value="UTF-8"/>
<property name="src.dir" value="src"/>
<property name="classes.dir" value="classes"/>
<path id="project.classpath">
<pathelement location="${classes.dir}" />
</path>
<target name="init">
<echo message="Preparing the project for build..."/>
<mkdir dir="${classes.dir}"/>
</target>
<target name="compile" depends="init">
<echo message="Compiling sources..." />
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" classpath="./javassist.jar">
<compilerarg value="-g:lines"/>
</javac>
</target>
<target name="run" depends="compile">
<jar destfile="${src.dir}/../boxingProfiler.jar">
<manifest>
<attribute name="Main-Class" value="ist.meic.pa.BoxingProfiler"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${classes.dir}"/>
<zipfileset src="./javassist.jar"/>
</jar>
</target>
<target name="clean">
<delete dir="${classes.dir}"/>
<delete file="boxingProfiler.jar" />
</target>
</project>