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"?>
|
||||
<project name="LearningJava" default="build">
|
||||
|
||||
<target name="clean" description="remove intermediate files">
|
||||
<delete>
|
||||
<fileset dir="obj" includes="**/*.class"/>
|
||||
</delete>
|
||||
</target>
|
||||
<target name="clean" description="remove intermediate files">
|
||||
<delete>
|
||||
<fileset dir="obj" includes="**/*.class"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="build" description="compile Java sources">
|
||||
<javac srcdir="src" destdir="obj" includeantruntime="yes"/>
|
||||
</target>
|
||||
<target name="build" description="compile Java sources">
|
||||
<javac srcdir="src" destdir="obj" includeantruntime="yes"/>
|
||||
</target>
|
||||
|
||||
<target name="jar" depends="build"
|
||||
description="create Jar from compiled sources">
|
||||
<jar destfile="dist/learning-java.jar">
|
||||
<fileset dir="obj" includes="**/*.class"/>
|
||||
</jar>
|
||||
</target>
|
||||
<target name="jar" depends="build"
|
||||
description="create Jar from compiled sources">
|
||||
<jar destfile="dist/learning-java.jar">
|
||||
<fileset dir="obj" includes="**/*.class"/>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="hello" depends="build" description="runs HelloSir">
|
||||
<java classname="com.meatballhat.learningjava.HelloSir"
|
||||
classpath="obj"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user