-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
64 lines (55 loc) · 1.89 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
57
58
59
60
61
62
63
64
<project name="idswrapper" default="dist" basedir=".">
<description>IDSWrapper</description>
<property name="version" value="1.0" />
<property name="src" location="src" />
<property name="build" location="build" />
<property name="doc" location="javadoc" />
<property name="dist" location="dist" />
<property name="debug" value="true" />
<target name="init">
<tstamp />
</target>
<target name="compile" depends="init" description="Build">
<mkdir dir="${build}" />
<javac srcdir="${src}" destdir="${build}" classpath="${libs}" debug="${debug}">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="Generate JAR distribution">
<mkdir dir="${dist}" />
<manifestclasspath property="jar.classpath" jarfile="${dist}/idswrapper.jar">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</manifestclasspath>
<manifest file="${src}/MANIFEST.MF">
<attribute name="Manifest-Version" value="${version}" />
<attribute name="Main-Class" value="it.polimi.elet.vplab.idswrapper.Main" />
<attribute name="Class-Path" value="${jar.classpath}"/>
</manifest>
<jar jarfile="${dist}/idswrapper.jar" basedir="${build}" manifest="${src}/MANIFEST.MF"/>
</target>
<target name="doc" description="Generate documentation">
<mkdir dir="${doc}" />
<javadoc packagenames="it.polimi.elet.vplab.idswrapper.*" destdir="${doc}" source="1.6"
author="true" version="true">
<sourcepath>
<pathelement path="${src}" />
</sourcepath>
</javadoc>
</target>
<target name="clean" description="clean workspace">
<delete file="${src}/MANIFEST.MF" />
<delete dir="${doc}" />
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>