adding a dumb task for running HelloSir
This commit is contained in:
parent
74ac431a0e
commit
5f75a83bd4
33
build.xml
33
build.xml
@ -1,21 +1,26 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<project name="LearningJava" default="build">
|
<project name="LearningJava" default="build">
|
||||||
|
|
||||||
<target name="clean" description="remove intermediate files">
|
<target name="clean" description="remove intermediate files">
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="obj" includes="**/*.class"/>
|
<fileset dir="obj" includes="**/*.class"/>
|
||||||
</delete>
|
</delete>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build" description="compile Java sources">
|
<target name="build" description="compile Java sources">
|
||||||
<javac srcdir="src" destdir="obj" includeantruntime="yes"/>
|
<javac srcdir="src" destdir="obj" includeantruntime="yes"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="build"
|
<target name="jar" depends="build"
|
||||||
description="create Jar from compiled sources">
|
description="create Jar from compiled sources">
|
||||||
<jar destfile="dist/learning-java.jar">
|
<jar destfile="dist/learning-java.jar">
|
||||||
<fileset dir="obj" includes="**/*.class"/>
|
<fileset dir="obj" includes="**/*.class"/>
|
||||||
</jar>
|
</jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="hello" depends="build" description="runs HelloSir">
|
||||||
|
<java classname="com.meatballhat.learningjava.HelloSir"
|
||||||
|
classpath="obj"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
Loading…
Reference in New Issue
Block a user