Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (51 sloc) 2.08 KB
<project name="wsdecode" default="dist" basedir=".">
<!-- set global properties for this build -->
<property file="" />
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="data" value="data" />
<property name="build" value="${basedir}/build" />
<property name="build.classes" value="${build}/classes" />
<property name="build.dist" value="${build}/dist" />
<property name="build.tmp" value="${build}/tmp" />
<property name="doc" value="${basedir}/doc" />
<property name="doc.javadoc" value="${doc}/javadoc" />
<property name="javac.source" value="1.5" />
<path id="build.classpath">
<pathelement location="${build.classes}" />
<!-- Pull in any jars files that are in the relative
lib directory. -->
<fileset dir="lib">
<include name="**/*.jar" />
<property name="build.classpath" refid="build.classpath" />
<target name="init">
<!-- Create the time stamp -->
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.dist}"/>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build.classes}" classpathref="build.classpath" />
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${build.dist}/lib"/>
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${build.dist}/lib/barcode.jar" basedir="${build.classes}"/>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>