File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ source.dir =.
2+ build.dir =build
3+ dist =dist
Original file line number Diff line number Diff line change 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 } " />
24+
25+ <jar jarfile =" ${ dist } /java-json.jar" >
26+ <fileset dir =" ${ build.dir } " />
27+ </jar >
28+ </target >
29+
30+ <target name =" clean" description =" clean up" >
31+ <!-- Delete the ${build.dir} and ${dist} directory trees -->
32+ <delete dir =" ${ build.dir } " />
33+ <delete dir =" ${ dist } " />
34+ </target >
35+ </project >
You can’t perform that action at this time.
0 commit comments