-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
46 lines (38 loc) · 1.39 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
<project name="aspviz" default="dist">
<property name="version" value="0.2.4" />
<property name="src.dir" value="src" />
<property name="build.dir" value="dist/build" />
<property name="deps.dir" value="deps" />
<property name="jar.file" value="dist/aspviz-${version}.jar" />
<path id="master-classpath">
<fileset dir="${deps.dir}">
<include name="*.jar" />
</fileset>
<pathelement path="${build.dir}" />
</path>
<target name="dist" depends="build">
<mkdir dir="${build.dir}" />
<jar destfile="${jar.file}">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="edu.bath.aspviz.ASPViz"/>
<section name="common">
<attribute name="Specification-Title" value="ASPViz" />
<attribute name="Specification-Version" value="${version}" />
<attribute name="Specification-Vendor" value="University of Bath" />
<attribute name="Implementation-Title" value="common" />
<attribute name="Implementation-Version" value="${version} ${TODAY}" />
<attribute name="Implementation-Vendor" value="University of Bath" />
</section>
</manifest>
<fileset dir="${build.dir}" includes="**/**">
</fileset>
</jar>
</target>
<target name="build">
<mkdir dir="${build.dir}" />
<javac destdir="${build.dir}" debug="true" classpathref="master-classpath">
<src path="${src.dir}" />
</javac>
</target>
</project>