This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
41 lines (40 loc) · 1.74 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
<?xml version="1.0"?>
<project name="wca-workbook-assistant" default="package">
<property file="build.properties"/>
<taskdef resource="proguard/ant/task.properties"
classpath="build/lib/proguard.jar"/>
<target name="clean">
<delete dir="target"/>
</target>
<target name="compile">
<mkdir dir="target/classes"/>
<javac srcdir="src/main/java" destdir="target/classes" target="1.6" source="1.6" encoding="utf8" debug="true" includeantruntime="false">
<classpath>
<fileset dir="lib" includes="*.jar"/>
</classpath>
</javac>
</target>
<target name="jar" depends="compile">
<jar basedir="target/classes" jarfile="target/wca-workbook-assistant-lib-${version}.jar">
<manifest>
<attribute name="Main-Class" value="org.worldcubeassociation.WorkbookAssistant"/>
<attribute name="Implementation-Version" value="${version}"/>
</manifest>
</jar>
</target>
<target name="obfuscatejar" depends="jar">
<proguard note="false" warn="false" obfuscate="false" optimize="false" shrink="false">
<libraryjar>
<fileset dir="${java.home}/lib" includes="*.jar"/>
<!--<fileset dir="${java.home}/../Classes" includes="*.jar"/>-->
</libraryjar>
<injar filter="!META-INF/**">
<fileset dir="lib" includes="*.jar"/>
</injar>
<injar file="target/wca-workbook-assistant-lib-${version}.jar"/>
<injar file="src/main/resources"/>
<outjar file="target/wca-workbook-assistant-${version}.jar"/>
</proguard>
</target>
<target name="package" depends="obfuscatejar"/>
</project>