forked from echodeteam/echode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
82 lines (67 loc) · 2.58 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<<<<<<< HEAD
<project name='echode' default='main'>
<property name="src.dir" value="Echode/src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="main-class" value="echode.Echode"/>
=======
<?xml version="1.0" encoding="UTF-8"?>
<project name="Echode" default="default" basedir=".">
<description>Builds, tests, and runs the project Echode.</description>
<property name="src.dir" value="src/"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="docs.dir" value="${build.dir}/doc"/>
<property name="main-class" value="echode.EchodeStarter"/>
>>>>>>> 71cc4a9b966fcffa3f290f9b58c38a57419f6d3e
<target name="clean">
<delete dir="build"/>
</target>
<<<<<<< HEAD
<target name="compile" depends='clean'>
<mkdir dir="build"/>
<javac srcdir="Echode/src" destdir="build"/>
</target>
<target name="jar" depends='compile'>
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Echode.jar" basedir="build">
<manifest>
<attribute name="Main-Class" value="echode.Echode"/>
</manifest>
</jar>
</target>
<target name="main" depends="clean,compile"/>
<target name='test' depends='main'/>
<target name='jenk' depends='main,jar'/>
</project>
=======
<target name="compile">
<mkdir dir="build/classes"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="build/jar/Echode.jar" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main-class}"/>
</manifest>
</jar>
</target>
<target name="run" depends="jar">
<java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
</target>
<target name="docs" depends="compile">
<javadoc packagenames="src" sourcepath="${src.dir}" destdir="${docs.dir}">
<!-- Define which files / directory should get included, we include all -->
<fileset dir="${src.dir}">
<include name="**" />
</fileset>
</javadoc>
</target>
<target name="test"> </target>
<target name="default" depends="clean,jar"> </target>
<target name="main" depends="default"> </target>
</project>
>>>>>>> 71cc4a9b966fcffa3f290f9b58c38a57419f6d3e