Skip to content

Commit 063db7f

Browse files
Aidan Delaneyansell
authored andcommitted
* Added an And build file
1 parent 316223d commit 063db7f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

build.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source.dir=.
2+
build.dir=build
3+
dist=dist

build.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="JSON-Java" default="dist">
3+
4+
<property file="build.properties" />
5+
6+
<target name="init">
7+
<!-- Create the time stamp -->
8+
<tstamp/>
9+
<!-- Create the build directory structure used by compile -->
10+
<mkdir dir="${build.dir}"/>
11+
</target>
12+
13+
<target name="compile" depends="init"
14+
description="compile the source " >
15+
<!-- Compile the java code from ${source.dir} into ${build.dir} -->
16+
<javac srcdir="${source.dir}" destdir="${build.dir}" debug="on">
17+
</javac>
18+
</target>
19+
20+
<target name="dist" depends="compile"
21+
description="generate the distribution" >
22+
<!-- Create the distribution directory -->
23+
<mkdir dir="${dist}/lib"/>
24+
25+
<!-- Put everything in ${build.dir} into the MyProject-${DSTAMP}.jar file -->
26+
<jar jarfile="${dist}/java-json-${DSTAMP}.jar" >
27+
<fileset dir="${build.dir}"/>
28+
</jar>
29+
</target>
30+
31+
<target name="clean" description="clean up" >
32+
<!-- Delete the ${build.dir} and ${dist} directory trees -->
33+
<delete dir="${build.dir}"/>
34+
<delete dir="${dist}"/>
35+
</target>
36+
</project>

0 commit comments

Comments
 (0)