I am trying to add some custom build steps to eclipse build when build my android project.
For this I have added a new ant build task to Project Properties->Builders
The ant build unpacks the apk, changes some files, zips it back, and then use jarsigner to sign it.
However I am getting "please specify alias name" when it tries to sign using jarsigner. If I do this outside the eclipse this works properly.
Any help is really appreciated. I am struggling on this for two days now.
Ant task
<exec executable="C:\Program Files\Java\jdk1.7.0_03\bin\jarsigner.exe" dir="E:\Android\trunk\Source">
<arg value=" -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore "E:\Android\trunk\Builder\MyKeyStore" -storepass "password" -keypass "password" "E:\Android\trunk\Source\bin\MyProject.apk" keystorealias" />
</exec>
Output
[exec]
[exec] Please type jarsigner -help for usage
[exec] Please specify alias name
[exec] Result: 1