Reputation: 935
According to the 'help' target documentation:
Here is what I found, which is a bit different than what I expected:
debug: ignores keystore definitions in build.properties
whether you specify them or not. Which kesystore file is it using? The same as Eclipse: the default debug.keystore
file in your Documents and Settings?
It creates two files:
release: 'help' says it doesn't sign it. It creates these files:
The next two are only if you have the values specified in build.properties
:
Any helpful comments / verifications will be greatly appreciated.
Upvotes: 8
Views: 13244
Reputation: 51
This answer works for me, I am using ant to auto-compile android app, it prompts and need password, I wrote one file named password, and using the command ---ant release < passwd, However, it also prompts that I need input password.
Using the tips here
key.store=c:/users/me/my-release-key.keystore
key.alias=release_alias
key.store.password=myStorePassword
key.alias.password=myAliasPassword
I solved this problem.
Upvotes: 1
Reputation: 23873
As far as the release target goes, you will get behaviour like this:
If you have lines like:
key.store=c:/users/me/my-release-key.keystore
key.alias=release_alias
key.store.password=myStorePassword
key.alias.password=myAliasPassword
in your build.properties, it will automatically build and sign your apk with no prompting for anything.
If you comment out the last two lines, then it will prompt you for the passwords, then complete a signed build if the passwords are OK.
If you don't have any of the above lines, then it will just build you an unsigned apk with no prompting for anything and end with:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign C:\dev\projects\AntBuilds\MyProject\bin\MyProject-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
.
Upvotes: 7
Reputation: 1006614
Which kesystore file is it using? The same as Eclipse: the default debug.keystore file in your Documents and Settings?
Yes.
Upvotes: 10