-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
43 lines (38 loc) · 1.38 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
<project name="QSPcc" default="jar">
<property name="libs.dir" value="lib/" />
<property name="dist.dir" value="dist/" />
<property name="classes.dir" value="build/classes" />
<property name="test.classes.dir" value="build/testclasses" />
<target name="clean">
<delete dir="build"/>
</target>
<path id="classpath.base">
<fileset dir="${libs.dir}">
<!-- EDIT: Modify to include or exclude specific jars -->
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="src" destdir="${classes.dir}">
<classpath refid="classpath.base" />
</javac>
<mkdir dir="${test.classes.dir}"/>
<javac srcdir="test" destdir="${test.classes.dir}">
<classpath>
<path refid="classpath.base"/>
<pathelement path="${classes.dir}" />
</classpath>
</javac>
</target>
<target name="jar" depends="clean, compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/QSPcc.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="eu.cosbi.translator.start.Starter"/>
</manifest>
</jar>
<jar destfile="build/jar/QSPccTests.jar" basedir="${test.classes.dir}">
</jar>
</target>
</project>