2010-11-24 23:52:25 +00:00
|
|
|
<?xml version="1.0"?>
|
2010-11-25 00:04:42 +00:00
|
|
|
<project name="LearningJava" default="build">
|
2010-11-24 23:52:25 +00:00
|
|
|
|
2010-11-25 00:04:42 +00:00
|
|
|
<target name="clean" description="remove intermediate files">
|
|
|
|
<delete>
|
|
|
|
<fileset dir="obj" includes="**/*.class"/>
|
|
|
|
</delete>
|
|
|
|
</target>
|
2010-11-24 23:52:25 +00:00
|
|
|
|
2010-11-25 00:04:42 +00:00
|
|
|
<target name="build" description="compile Java sources">
|
|
|
|
<javac srcdir="src" destdir="obj" includeantruntime="yes"/>
|
|
|
|
</target>
|
2010-11-24 23:52:25 +00:00
|
|
|
|
2010-11-25 00:04:42 +00:00
|
|
|
<target name="jar" depends="build"
|
2010-11-24 23:52:25 +00:00
|
|
|
description="create Jar from compiled sources">
|
2010-11-25 00:04:42 +00:00
|
|
|
<jar destfile="dist/learning-java.jar">
|
|
|
|
<fileset dir="obj" includes="**/*.class"/>
|
|
|
|
</jar>
|
|
|
|
</target>
|
2010-11-24 23:52:25 +00:00
|
|
|
|
|
|
|
</project>
|