Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (42 sloc) 1.624 kB
<?xml version="1.0" encoding="UTF-8"?>
<project name="JSON-Java" default="dist">
<property file="build.properties" />
<target name="init" depends="clean">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${target.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${dist}" />
</target>
<target name="compile-src"
description="compile the runtime classes " >
<!-- Compile the java code from ${source.dir} into ${build.dir} -->
<javac srcdir="${source.dir}" destdir="${build.dir}" debug="on">
</javac>
</target>
<target name="compile-tests" depends="compile-src"
description="compile the tests " >
<!-- Compile the java code from ${test.dir} into ${build.dir} -->
<javac srcdir="${test.dir}" destdir="${build.dir}" debug="on">
<classpath>
<pathelement location="${lib.dir}/junit-4.10.jar"/>
</classpath>
</javac>
</target>
<target name="compile" depends="init, compile-src"
description="compiles all the sources"/>
<target name="test" depends="init, compile-src, compile-tests"
description="tests all the sources"/>
<target name="dist" depends="init, compile-src"
description="generate the distribution" >
<!-- Put everything in ${build.dir} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/json-${DSTAMP}.jar" >
<fileset dir="${build.dir}"/>
</jar>
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${target.dir} temporary directory trees -->
<delete dir="${target.dir}"/>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.