Last active 2 months ago

ant

michelgentile's Avatar michelgentile revised this gist 2 months ago. Go to revision

1 file changed, 31 insertions

build.xml(file created)

@@ -0,0 +1,31 @@
1 + <project name="MyProject" default="dist" basedir=".">
2 + <description>
3 + simple example build file
4 + </description>
5 +
6 + <!-- set global properties for this build -->
7 + <property name="foo" value="Foo" />
8 + <property name="bar" value="Bar" />
9 + <property name="build" location="build/" />
10 + <property location="myproject.properties" />
11 +
12 + <target name="init">
13 + <mkdir dir="${build}"/>
14 + </target>
15 +
16 + <target name="compile" depends="init" description="compile the source">
17 + <exec executable="cmd">
18 + <arg value="/c"/>
19 + <arg value="ant.bat"/>
20 + <arg value="-p"/>
21 + </exec>
22 + </target>
23 +
24 + <target name="dist" depends="compile" description="generate the distribution">
25 + </target>
26 +
27 + <target name="clean" description="clean up">
28 + <!-- Delete the ${build} directory trees -->
29 + <delete dir="${build}"/>
30 + </target>
31 + </project>
Newer Older