diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2013-12-03 10:53:18 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2013-12-03 10:54:46 +0200 |
commit | fce7f275c0778b6929c39947214f2dcf98dfbbeb (patch) | |
tree | 3e667ef5d56bac428bd804deaedddcdef7b293cc /build.xml | |
parent | a0121a26860c43a10919c90e023e193779be3a9e (diff) |
build.xml: ant build file
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..f334cc6 --- /dev/null +++ b/build.xml @@ -0,0 +1,41 @@ +<project name="java-chat" default="dist" basedir="."> + <description> + Java-based IRC-compatible client and server + </description> + <!-- set global properties for this build --> + <property name="src" location="src"/> + <property name="build" location="build"/> + <property name="dist" location="dist"/> + + <target name="init"> + <!-- Create the time stamp --> + <tstamp/> + <!-- Create the build directory structure used by compile --> + <mkdir dir="${build}"/> + </target> + + <target name="compile" depends="init" + description="compile the source " > + <!-- Compile the java code from ${src} into ${build} --> + <javac srcdir="${src}" destdir="${build}"/> + </target> + + <target name="dist" depends="compile" + description="generate the distribution" > + <!-- Create the distribution directory --> + <mkdir dir="${dist}/lib"/> + + <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> + <jar jarfile="${dist}/lib/java-chat-${DSTAMP}.jar" basedir="${build}"/> + </target> + + <target name="clean" + description="clean up" > + <!-- Delete the ${build} and ${dist} directory trees --> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> + + +</project> + |