forked from scmgalaxy/helloworld-java-ant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (24 loc) · 774 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<project name="myfirst1" basedir="." default="package">
<property name="src" value="src" />
<target name="clean">
<echo message="We are in cleaning target........."/>
<delete file="bin/HelloWorld.class"/>
<delete dir="bin"/>
<delete dir="lib"/>
</target>
<target name="create" depends="clean">
<echo message="We are in creating target........."/>
<mkdir dir="src"/>
<mkdir dir="bin"/>
</target>
<target name="compile" depends="create">
<echo message="Before Compile"/>
<javac includeantruntime="false" srcdir="src" destdir="bin" />
<echo message="Post Compile"/>
</target>
<target name="package" depends="compile">
<echo message="We are in package target........."/>
<mkdir dir="lib"/>
<jar destfile="lib/app.jar" basedir="bin"/>
</target>
</project>