-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
35 lines (34 loc) · 1.45 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="StealBomber">
<taskdef resource="proguard/ant/task.properties" classpath="ant/lib/proguard-ant.jar" />
<property name="bin.dir" location="ant/build" />
<property name="version" value="${version}" />
<target name="help" description="Print help">
<echo>help - Print help</echo>
<echo>build - Export Jar</echo>
</target>
<target name="build">
<mkdir dir="${bin.dir}" />
<javac srcdir="src" destdir="${bin.dir}" includeantruntime="on" />
<jar destfile="stealbomber-bf.jar" basedir="${bin.dir}" update="true">
<manifest>
<attribute name="Built-By" value="ObcbO" />
<attribute name="Specification-Title" value="StealBomber" />
<attribute name="Specification-Version" value="${version}" />
<attribute name="Main-Class" value="stealbomber.App" />
</manifest>
</jar>
<delete dir="${bin.dir}" />
<proguard>
-injars stealbomber-bf.jar
-outjars stealbomber.jar
-libraryjars ${java.home}/jmods/java.base.jmod(!**.jar;!module-info.class)
-dontwarn
-keep public class stealbomber.App {
public static void main(java.lang.String[]);
}
-optimizationpasses 3
</proguard>
<delete file="stealbomber-bf.jar" />
</target>
</project>