-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.xml
54 lines (49 loc) · 1.59 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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="p1" default="run" basedir=".">
<property name="name" value="Fizzim2" />
<property name="main" value="FizzimGui" />
<property name="src" value="src" />
<property name="dest" value="classes" />
<property name="lib" value="lib" />
<property name="version" value="1.1" />
<property name="date" value="16.04.26" />
<property name="jar" value="${name}-${date}.jar" />
<echo message="----------- Fizzim2 ver.${version} [${date}] ------------" />
<target name="init">
<echo message="mkdir ${dest}"></echo>
<mkdir dir="${dest}" />
</target>
<target name="compile" depends="init" description="Compile Java code">
<javac destdir="${dest}"
includeantruntime="on">
<src path="${src}"/>
<classpath>
<pathelement path="${lib}"/>
</classpath>
</javac>
</target>
<target name="build" depends="compile">
<jar jarfile="${jar}" basedir="${dest}">
<fileset dir="${lib}">
<include name="**"/>
</fileset>
<fileset dir="${src}">
<include name="*.png"/>
</fileset>
<manifest>
<attribute name="Main-Class" value="FizzimGui"/>
</manifest>
</jar>
</target>
<target name="run" depends="build">
<java fork="true" classname="${main}">
<classpath>
<pathelement path="${jar}"/>
<pathelement path="${lib}"/>
</classpath>
</java>
</target>
<target name="clean">
<delete dir="${dest}"/>
</target>
</project>