-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
35 lines (29 loc) · 882 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
32
33
34
35
<project name="mathexpr" default="main" basedir=".">
<description>
Math Expresion Evaluator/Interpreter
</description>
<property name="src" location="src"/>
<property name="build" location="bin"/>
<property name="dist" location="dist"/>
<target name="clean">
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<target name="makedir">
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="clean, makedir">
<javac srcdir="${src}" destdir="${build}" />
</target>
<target name="jar" depends="compile">
<jar destfile="${dist}\de.codefionn.mathexpr.jar" basedir="${build}">
<manifest>
<attribute name="Main-Class" value="de.codefionn.mathexpr.ProgramMain"/>
</manifest>
</jar>
</target>
<target name="main" depends="compile, jar">
<description>Main target</description>
</target>
</project>