-
Notifications
You must be signed in to change notification settings - Fork 2
/
applet.xml
42 lines (33 loc) · 1.44 KB
/
applet.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" encoding="UTF-8"?>
<target name="jarApplet"
description="Target to create the GenericGetOne applet jar file and sign it" depends="compile">
<property name="build.compiler" value="javac1.4"/>
<mkdir dir="${lib.dir}"/>
<jar destfile="${generic.jar}"
basedir="${classes.dir}"
manifest="beansManifestIn.mf">
<include name="uk/co/westhawk/examplev1/GenericGetOne**"/>
<include name="org/bouncycastle/crypto/**"/>
<include name="uk/co/westhawk/snmp/**"/>
<manifest>
<section name="uk/co/westhawk/">
<attribute name="Implementation-Title" value="Westhawk Java SNMP Stack - Applet"/>
<attribute name="Implementation-Version" value="${impl_version}"/>
</section>
</manifest>
</jar>
<antcall target="signjar">
<param name="tosign.jar" value="${generic.jar}"/>
</antcall>
</target>
<!-- Verify that we have got the password for the keystore -->
<target name="checkKeystorePass" unless="env.KEYSTORE_PASS">
<fail message="Environment variable KEYSTORE_PASS isn't set, jars can't be signed"/>
</target>
<!-- Sign the jar file -->
<target name="signjar" description="Sign a jar file" depends="checkKeystorePass">
<signjar jar="${tosign.jar}"
alias="westhawk"
storepass="${keystore.pass}"
keystore="/project/westhawk/keys/codesign/thawte08/westhawk.keystore"/>
</target>