This repository has been archived by the owner on Jan 27, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.xml
52 lines (52 loc) · 2.53 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
<?xml version="1.0"?>
<project name="vJCRE" default="dist" basedir=".">
<description>ANT build file for vJCRE</description>
<target name="fetch" description="fetch the dependencies">
<mkdir dir="lib"/>
<!-- Remember to update vjcre.pro and classpath as well! -->
<get src="http://downloads.bouncycastle.org/java/bcprov-jdk15on-154.jar" dest="lib" verbose="true" skipexisting="true"/>
<get src="http://downloads.bouncycastle.org/java/bcpkix-jdk15on-154.jar" dest="lib" verbose="true" skipexisting="true"/>
<get src="http://central.maven.org/maven2/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.jar" dest="lib" verbose="true" skipexisting="true"/>
<checksum algorithm="SHA-256" file="lib/bcprov-jdk15on-154.jar" property="d0ae14598f9c528d2ab7bb8ed00e785a5440f692712cd362d69328aba25efb57" verifyProperty="bouncy1OK"/>
<checksum algorithm="SHA-256" file="lib/bcpkix-jdk15on-154.jar" property="d618dcfbf0337b91015b21d4b398175ae96382a82c7e1d6e8c657fcd236463c7" verifyProperty="bouncy2OK"/>
<checksum algorithm="SHA-256" file="lib/proguard-base-5.2.1.jar" property="f163bdd73c58cbc9b789ab14f5d602b4994dbd82eacb5d54b3bd2a95de63f3bf" verifyProperty="proguardOK"/>
<fail message="Checksum failure">
<condition>
<or>
<isfalse value="${bouncy1OK}"/>
<isfalse value="${bouncy2OK}"/>
<isfalse value="${proguardOK}"/>
</or>
</condition>
</fail>
</target>
<!-- Build the software -->
<path id="build.classpath">
<pathelement location="lib/bcprov-jdk15on-154.jar"/>
<pathelement location="lib/bcpkix-jdk15on-154.jar"/>
</path>
<target name="compile" description="compile the source" depends="fetch">
<mkdir dir="build"/>
<javac srcdir="src" destdir="build" includeantruntime="false" excludes="*.java" debug="true" debuglevel="lines,vars,source">
<compilerarg value="-Xlint"/>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- Package it into a nice little JAR -->
<target name="dist" depends="compile">
<jar destfile="vjcre.jar" level="9" basedir="build"/>
</target>
<target name="all" depends="dist" description="generate the distribution">
<java classname="proguard.ProGuard" fork="true" failonerror="true">
<arg line="@vjcre.pro"/>
<classpath>
<pathelement location="lib/proguard-base-5.2.1.jar"/>
</classpath>
</java>
</target>
<!-- Clean the source tree -->
<target name="clean" description="clean up">
<delete dir="build"/>
<delete file="vjcre.jar"/>
</target>
</project>