50 |
26 Feb 19 |
nicklas |
1 |
<project name="json-simple" default="main" basedir="."> |
54 |
26 Feb 19 |
nicklas |
2 |
<property name="current-version" value="1.1.1-1"/> |
50 |
26 Feb 19 |
nicklas |
3 |
<property name="targetDir" value="target"/> |
50 |
26 Feb 19 |
nicklas |
4 |
<property name="javaSourceDir" value="src/main/java"/> |
50 |
26 Feb 19 |
nicklas |
5 |
<property name="javaTargetDir" value="target/classes"/> |
50 |
26 Feb 19 |
nicklas |
6 |
|
50 |
26 Feb 19 |
nicklas |
7 |
<target name="main" depends="jar"></target> |
50 |
26 Feb 19 |
nicklas |
8 |
|
50 |
26 Feb 19 |
nicklas |
9 |
<target name="clean"> |
50 |
26 Feb 19 |
nicklas |
10 |
<delete includeemptydirs="true"> |
50 |
26 Feb 19 |
nicklas |
11 |
<fileset dir="${targetDir}" includes="**/*"/> |
50 |
26 Feb 19 |
nicklas |
12 |
</delete> |
50 |
26 Feb 19 |
nicklas |
13 |
</target> |
50 |
26 Feb 19 |
nicklas |
14 |
|
50 |
26 Feb 19 |
nicklas |
15 |
<target name="mkdir"> |
50 |
26 Feb 19 |
nicklas |
16 |
<mkdir dir="${javaTargetDir}"/> |
50 |
26 Feb 19 |
nicklas |
17 |
</target> |
50 |
26 Feb 19 |
nicklas |
18 |
|
50 |
26 Feb 19 |
nicklas |
19 |
<target name="compile" depends="mkdir"> |
50 |
26 Feb 19 |
nicklas |
20 |
<javac srcdir="${javaSourceDir}" |
50 |
26 Feb 19 |
nicklas |
21 |
destdir="${javaTargetDir}" |
50 |
26 Feb 19 |
nicklas |
22 |
includes="**/*.java" |
54 |
26 Feb 19 |
nicklas |
23 |
target="1.8" |
54 |
26 Feb 19 |
nicklas |
24 |
source="1.8" |
54 |
26 Feb 19 |
nicklas |
25 |
includeantruntime="false" |
54 |
26 Feb 19 |
nicklas |
26 |
/> |
50 |
26 Feb 19 |
nicklas |
27 |
</target> |
50 |
26 Feb 19 |
nicklas |
28 |
|
50 |
26 Feb 19 |
nicklas |
29 |
<target name="jar" depends="compile"> |
50 |
26 Feb 19 |
nicklas |
30 |
<jar destfile="${targetDir}/json-simple-${current-version}.jar" |
50 |
26 Feb 19 |
nicklas |
31 |
basedir="${javaTargetDir}" |
50 |
26 Feb 19 |
nicklas |
32 |
includes="**/*.class"> |
50 |
26 Feb 19 |
nicklas |
33 |
<manifest> |
50 |
26 Feb 19 |
nicklas |
34 |
<attribute name="Bundle-Name" value="JSON.simple"/> |
50 |
26 Feb 19 |
nicklas |
35 |
<attribute name="Bundle-SymbolicName" value="com.googlecode.json-simple.json-simple"/> |
50 |
26 Feb 19 |
nicklas |
36 |
<attribute name="Bundle-Version" value="${current-version}"/> |
50 |
26 Feb 19 |
nicklas |
37 |
<attribute name="Bundle-License" value="http://www.apache.org/licenses/LICENSE-2.0.txt"/> |
50 |
26 Feb 19 |
nicklas |
38 |
<attribute name="Bundle-Description" value="A simple Java toolkit for JSON"/> |
50 |
26 Feb 19 |
nicklas |
39 |
<attribute name="Export-Package" value="org.json.simple, org.json.simple.parser"/> |
50 |
26 Feb 19 |
nicklas |
40 |
</manifest> |
50 |
26 Feb 19 |
nicklas |
41 |
</jar> |
50 |
26 Feb 19 |
nicklas |
42 |
</target> |
50 |
26 Feb 19 |
nicklas |
43 |
</project> |