-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (31 loc) · 1.38 KB
/
Copy pathbuild.xml
File metadata and controls
38 lines (31 loc) · 1.38 KB
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
32
33
34
35
36
37
38
<project name="GHzClickerBuild" default="test" basedir=".">
<!-- set global properties for this build -->
<property name="build.dir" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="src.dir" location="src"/>
<property name="main.class" value="duckyscripttoarduino.DuckyScriptToArduino"/>
<target name="test" depends="run" />
<target name="build" depends="clean" description="build the source">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build.dir}"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" includeantruntime="false"/>
<echo message="Build done" />
</target>
<target name="run" depends="build" description="run the build">
<!-- Create the distribution directory -->
<mkdir dir="${dist.dir}"/>
<jar destfile="${dist.dir}/DuckyScriptToArduino-${DSTAMP}.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
</manifest>
</jar>
</target>
<target name="clean" description="Clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<echo message="clean done" />
</target>
</project>