-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
44 lines (41 loc) · 1.63 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
<?xml version="1.0"?>
<project default="build" basedir=".">
<taskdef resource="proguard/ant/task.properties" classpath="/usr/share/java/proguard.jar"/>
<property name="name" value="j2alert"/>
<property name="src.dir" location="${basedir}/src"/>
<property name="build" location="${basedir}/bin"/>
<property name="build.classes" location="${basedir}/build"/>
<path id="libs.dir">
<fileset dir="${basedir}/lib" includes="cldc_1.1.jar"/>
<fileset dir="${basedir}/lib" includes="midp_2.0.jar"/>
</path>
<target name="build" depends="clean">
<mkdir dir="${build.classes}"/>
<javac executable="/Programs/elf/j2sdk1.4.2_19/bin/javac" fork="yes" includeantruntime="false" srcdir="${src.dir}" destdir="${build.classes}" debug="false" deprecation="true" optimize="true" target="1.1" source="1.3">
<classpath refid="libs.dir"/>
</javac>
<mkdir dir="${build.classes}/META-INF"/>
<copy todir="${build.classes}/META-INF">
<fileset dir="${basedir}" includes="MANIFEST.MF"/>
</copy>
<mkdir dir="${build.classes}/res"/>
<copy todir="${build.classes}/res">
<fileset dir="${basedir}/res" includes="**/*.png"/>
<fileset dir="${basedir}/res" includes="**/*.mid"/>
</copy>
<zip destfile="${build}/${name}-nonpreverified.jar" basedir="${build.classes}"/>
<proguard>
-injars ${build}/${name}-nonpreverified.jar
-libraryjars /Programs/portable/WTK2.5.2/lib/cldcapi11.jar
-libraryjars /Programs/portable/WTK2.5.2/lib/midpapi20.jar
-dontshrink
-dontoptimize
-dontobfuscate
-microedition
-outjars ${build}/${name}.jar
</proguard>
</target>
<target name="clean">
<delete dir="${build.classes}"/>
</target>
</project>