-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
39 lines (39 loc) · 1.68 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
<?xml version="1.0"?>
<project name="travelcard" default="convert" basedir=".">
<description>Ant build for Travel Card applet</description>
<property name="src" location="src"/>
<property name="build" location="build"/>
<property file="javacard.properties"/>
<property name="JAVA_PACKAGE" value="travelcard"/>
<property name="JAVA_PACKAGE_DIR" value="travelcard"/>
<property name="APPLET_NAME" value="TravelCardApplet"/>
<property name="PACKAGE_AID" value="0xa0:0x00:0x00:0x07:0x81:0x01"/>
<property name="APPLET_AID" value="0xa0:0x00:0x00:0x07:0x81:0x01:0x01:0x00:0x2A:0x01:0x02:0x03:0x04:0x05:0x06:0x07"/>
<property name="VERSION" value="1.0"/>
<target name="init">
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${build}" includeantruntime="false" source="1.6" target="1.6">
<classpath>
<pathelement path="${JAVACARD_HOME}/lib/api_classic.jar"/>
</classpath>
</javac>
</target>
<target depends="compile" name="convert" description="convert to .cap">
<java classname="com.sun.javacard.converter.Main" fork="true" failonerror="true">
<arg line="-classdir ${build}"/>
<arg line="-verbose"/>
<arg line="-exportpath ${JAVACARD_HOME}/api_export_files"/>
<arg line="-out CAP JCA EXP"/>
<arg line="-applet ${APPLET_AID} ${APPLET_NAME}"/>
<arg line="${JAVA_PACKAGE} ${PACKAGE_AID} ${VERSION}"/>
<classpath>
<pathelement location="${JAVACARD_HOME}/lib/tools.jar"/>
</classpath>
</java>
</target>
<target name="clean" description="clean up">
<delete dir="${build}"/>
</target>
</project>