diff options
Diffstat (limited to 'build-applet.xml')
| -rw-r--r-- | build-applet.xml | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/build-applet.xml b/build-applet.xml index 793060c..9d7d4d6 100644 --- a/build-applet.xml +++ b/build-applet.xml @@ -1,31 +1,32 @@ <?xml version="1.0" encoding="UTF-8"?> <project basedir="." default="build" name="ECTesterApplet"> - <!-- Based on Martin Paljak's applets playground --> - <!-- Applet building dependencies --> - <property name="JC222" value="ext/java_card_kit-2_2_2"/> - <property name="JC221" value="ext/java_card_kit-2_2_1"/> - <property name="JC303" value="ext/java_card_kit-3_0_3"/> - <property name="OP20" value="ext/visa_openplatform-2_0"/> - <property name="GP211" value="ext/globalplatform-2_1_1"/> - - <!-- ant-javacard task from javacard.pro --> - <taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="ext/ant-javacard.jar"/> + <!-- Based on Martin Paljak's applets playground --> + <!-- Applet building dependencies --> + <property name="JC222" value="ext/java_card_kit-2_2_2"/> + <property name="JC221" value="ext/java_card_kit-2_2_1"/> + <property name="JC303" value="ext/java_card_kit-3_0_3"/> + <property name="OP20" value="ext/visa_openplatform-2_0"/> + <property name="GP211" value="ext/globalplatform-2_1_1"/> - <target name="build" description="Builds the CAP file."> - <javacard jckit="${JC222}"> - <cap output="!uploader/ectester.cap" sources="src/cz/crcs/ectester/applet" aid="4543546573746572" > - <applet class="cz.crcs.ectester.applet.ECTesterApplet" aid="45435465737465723031"/> - </cap> - </javacard> - </target> + <!-- ant-javacard task from javacard.pro --> + <taskdef name="javacard" classname="pro.javacard.ant.JavaCard" classpath="ext/ant-javacard.jar"/> - <target name="upload" depends="build" description="Uploads the CAP file to the card, using gp.jar"> - <exec dir="!uploader" executable="./gppro_upload.sh" osfamily="unix"/> - <exec dir="!uploader" executable="./gppro_upload.bat" osfamily="windows"/> - </target> + <target name="build" description="Builds the CAP file."> + <javacard jckit="${JC222}"> + <cap output="applet/ectester.cap" sources="src/cz/crcs/ectester/applet" aid="4543546573746572"> + <applet class="cz.crcs.ectester.applet.ECTesterApplet" aid="45435465737465723031"/> + </cap> + </javacard> + </target> - <target name="upload-emv" depends="build" description="Uploads the CAP file to the card, using gp.jar, uses the EMV protocol"> - <exec dir="!uploader" executable="./gppro_upload_emv.sh" osfamily="unix"/> - <exec dir="!uploader" executable="./gppro_upload_emv.bat" osfamily="windows"/> - </target> + <target name="upload" depends="build" description="Uploads the CAP file to the card, using gp.jar"> + <exec dir="applet" executable="./gppro_upload.sh" osfamily="unix"/> + <exec dir="applet" executable="./gppro_upload.bat" osfamily="windows"/> + </target> + + <target name="upload-emv" depends="build" + description="Uploads the CAP file to the card, using gp.jar, uses the EMV protocol"> + <exec dir="applet" executable="./gppro_upload_emv.sh" osfamily="unix"/> + <exec dir="applet" executable="./gppro_upload_emv.bat" osfamily="windows"/> + </target> </project> |
