-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
45 lines (40 loc) · 1.18 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="all">
<description>
Naimon Project
</description>
<!--
Set properties
-->
<property name="srcdir" value="./src"/>
<property name="classdir" location="./build/class"/>
<property name="jarfile" location="./Naimon2.jar"/>
<!--
Set default target
-->
<target name="all" depends="compile, jar"></target>
<target name="compile">
<mkdir dir="${classdir}"/>
<javac srcdir="${srcdir}" destdir="${classdir}" encoding="utf-8" debug="no"/>
</target>
<target name="jar">
<copy todir="${classdir}" overwrite="true">
<fileset dir="${srcdir}">
<include name="**/resource/**"/>
</fileset>
</copy>
<jar basedir="${classdir}" jarfile="${jarfile}" compress="true">
<include name="jp/ac/fit/asura/nao/naimon/**"/>
<exclude name="**/.java"/>
<manifest>
<attribute name="Built-By" value="Team ASURA"/>
<attribute name="Main-Class" value="jp.ac.fit.asura.nao.naimon.Main"/>
<attribute name="SplashScreen-Image" value="jp/ac/fit/asura/nao/naimon/resource/naimon_splash2.png"/>
</manifest>
</jar>
</target>
<target name="clean">
<delete dir="${classdir}"/>
<delete file="${jarfile}"/>
</target>
</project>