diff options
author | Sven Gothel <[email protected]> | 2013-06-21 12:01:52 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-21 12:01:52 +0200 |
commit | 26bd0f9aa06c3294198f961fadff04ecd8e93cdc (patch) | |
tree | 64cdc5440494dc84425df751ecda75379cc9b9a5 | |
parent | b375bf84b56b391aa014154de2e7129de9af909a (diff) |
Fix jogamp-androidtask.xml's keytool and jarsigner options for Java6 / Android compatibility w/ Java7 toolchain.
-rw-r--r-- | make/jogamp-androidtasks.xml | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/make/jogamp-androidtasks.xml b/make/jogamp-androidtasks.xml index 5e6f63e..30d8dc0 100644 --- a/make/jogamp-androidtasks.xml +++ b/make/jogamp-androidtasks.xml @@ -186,6 +186,14 @@ <exec dir="." executable="keytool" failonerror="true"> <arg value="-genkey"/> + <!-- Be Java6 keytool/jarsigner compatible, and hence Android compatible --> + <arg value="-sigalg"/> + <arg value="MD5withRSA"/> + <arg value="-keyalg"/> + <arg value="RSA"/> + <arg value="-keysize"/> + <arg value="1024"/> + <arg value="-keystore" /> <arg value="${m.aapt.build.apk}/debug.keystore" /> @@ -202,15 +210,41 @@ <arg value="@{keystore.storepass}" /> </exec> + <!-- Be Java6 keytool/jarsigner compatible, and hence Android compatible --> <echo>aapt.signed @{jarbasename}: signing w/ key @{keystore.alias} @ ${m.aapt.keystore.file}</echo> - <signjar + <!-- signjar + sigalg="MD5withRSA" + digestalg="SHA1" jar="${m.aapt.unsigned.package.file.name}" signedjar="${m.aapt.signed.file.name}" keystore="${m.aapt.keystore.file}" alias="@{keystore.alias}" keypass="@{keystore.keypass}" storepass="@{keystore.storepass}" - verbose="false" /> + verbose="false" / --> + + <exec dir="." executable="jarsigner" failonerror="true"> + <!-- Be Java6 keytool/jarsigner compatible, and hence Android compatible --> + <arg value="-sigalg"/> + <arg value="MD5withRSA"/> + <arg value="-digestalg"/> + <arg value="SHA1"/> + + <arg value="-keystore" /> + <arg value="${m.aapt.keystore.file}" /> + + <arg value="-keypass" /> + <arg value="@{keystore.keypass}" /> + + <arg value="-storepass" /> + <arg value="@{keystore.storepass}" /> + + <arg value="-signedjar" /> + <arg value="${m.aapt.signed.file.name}" /> + + <arg value="${m.aapt.unsigned.package.file.name}" /> + <arg value="@{keystore.alias}" /> + </exec> <echo>aapt.signed @{jarbasename}: zip aligning</echo> <exec dir="." executable="${env.ANDROID_HOME}/tools/zipalign" failonerror="true"> |