File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
Expand file tree Collapse file tree 2 files changed +39
-0
lines changed 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 } /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 >
You can’t perform that action at this time.
0 commit comments