Skip to content


Subversion checkout URL

You can clone with
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="" />
<target name="init" depends="clean">
<!-- Create the time stamp -->
<!-- Create the build directory structure used by compile -->
<mkdir dir="${target.dir}" />
<mkdir dir="${build.dir}" />
<mkdir dir="${dist}" />
<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">
<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">
<pathelement location="${lib.dir}/junit-4.10.jar"/>
<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}"/>
<target name="clean" description="clean up" >
<!-- Delete the ${target.dir} temporary directory trees -->
<delete dir="${target.dir}"/>
Jump to Line
Something went wrong with that request. Please try again.