-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
46 lines (39 loc) · 1.43 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
<?xml version="1.0"?>
<project name="ChessEngine" basedir="." default="jar">
<!-- Properties file to (automated continuous integration-server specific) -->
<property name="src" value="src"/>
<property name="out" value="out"/>
<property name="name" value="${ant.project.name}"/>
<!-- Update repo -->
<target name="git">
<exec executable="git">
<arg value="pull"/>
</exec>
</target>
<!-- Initalize -->
<target name="init" depends="git" description="Create the needed files">
<mkdir dir="${out}"/>
<mkdir dir="${out}/classes"/>
<mkdir dir="${out}/jar"/>
</target>
<!-- Clean -->
<target name="clean" description="Cleans up the build directories">
<delete dir="${out}"/>
</target>
<!-- Build/compile -->
<target name="build" depends="init" description="Compile main source tree java files">
<javac destdir="${out}/classes" source="1.5" target="1.5" debug="true">
<src path="${src}"/>
</javac>
</target>
<!-- Create a jar file -->
<target name="jar" depends="clean, build">
<mkdir dir="${out}/jar"/>
<copy todir="${out}/jar" file="openings.txt" />
<jar destfile="${out}/jar/ziggy.jar" basedir="${out}/classes">
<manifest>
<attribute name="Main-Class" value="is.ru.cadia.ce.Application"/>
</manifest>
</jar>
</target>
</project>