-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (48 loc) · 1.45 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
<project name="json-simple" default="main" basedir=".">
<tstamp>
<format
property="BUILD_DATETIME"
pattern="dd-MMMM-yyyy HH:mm"
locale="en,US"/>
</tstamp>
<property name="srcDir" value="src"/>
<property name="buildDir" value="build"/>
<property name="libDir" value="lib"/>
<property name="current-version" value="${DSTAMP}${TSTAMP}"/>
<property name="jar-name" value="json_simple-${current-version}.jar"/>
<target name="main" depends="jar">
</target>
<target name="clean">
<delete dir="${buildDir}"/>
<delete dir="${libDir}"/>
</target>
<target name="mkdir">
<mkdir dir="${buildDir}"/>
<mkdir dir="${libDir}"/>
</target>
<target name="compile" depends="mkdir">
<javac srcdir="${srcDir}"
destdir="${buildDir}"
includes="**/*.java"
target="1.2"
source="1.2"/>
</target>
<target name="jar" depends="compile">
<jar destfile="${libDir}/${jar-name}">
<fileset dir="${buildDir}"/>
<fileset dir="${srcDir}"/>
<manifest>
<attribute name="Bundle-Name"
value="json.simple"/>
<attribute name="Bundle-SymbolicName"
value="${ant.project.name}"/>
<attribute name="Bundle-Version"
value="${current-version}"/>
<attribute name="Export-Package"
value="org.json.simple, org.json.simple.parser"/>
<attribute name="Build-Date"
value="${BUILD_DATETIME}"/>
</manifest>
</jar>
</target>
</project>