0

Im trying to use ant script to execute the jarsigner and and to sign.

The script which is running in windows machine is failing in Mac. I can see that there is some script issue .

Please check on this.

<target name="sign1" depends = "antrelease">
<echo>Signing 1....</echo>
<exec dir="." executable="/bin/sh">

<arg line="jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -   keystore abc.keystore -    121212  ${basedir}/workspace/temp/MobileUIOctRel/build/luaandroid/dist/DBSMobileWallet/bin/DBSMobileWallet-release-unsigned.apk dbs" />
        </exec>
</target>

Im getting the following error

sign1: [echo] Signing 1.... [exec] /usr/bin/jarsigner: /usr/bin/jarsigner: cannot execute binary file [exec] Result: 126

dheeraj
  • 195
  • 2
  • 19

0 Answers0