forked from richardmleggett/al2tex
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
40 lines (34 loc) · 1.06 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
<project name="Alvis">
<target name="clean">
<delete dir="build"/>
<delete dir="dist" />
</target>
<target name="compile">
<mkdir dir="build"/>
<javac srcdir="src/Alvis" destdir="build"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="dist"/>
<jar jarfile="dist/Alvis.jar" basedir="build">
<manifest>
<attribute name="Main-Class" value="Alvis.Alvis"/>
</manifest>
</jar>
</target>
<target name="linux-bin" depends="jar">
<exec executable="echo">
<arg value="Building linux executable: ${basedir}/alvis"/>
</exec>
<concat destfile="${basedir}/alvis" binary="yes">
<fileset file="${basedir}/alvis.head"/>
<fileset file="dist/Alvis.jar"/>
</concat>
<exec executable="chmod">
<arg value="755"/>
<arg value="${basedir}/alvis"/>
</exec>
</target>
<target name="run">
<java jar="dist/Alvis.jar" fork="true"/>
</target>
</project>