Skip to content

Instantly share code, notes, and snippets.

@petrkle
Created February 6, 2013 12:28
Show Gist options
  • Save petrkle/4722265 to your computer and use it in GitHub Desktop.
Save petrkle/4722265 to your computer and use it in GitHub Desktop.
Enter keystore password without echo.
--- android-sdk-linux/tools/ant/build.xml.orig 2013-02-06 13:26:17.211067737 +0100
+++ android-sdk-linux/tools/ant/build.xml 2013-02-06 13:25:42.002053657 +0100
@@ -1043,10 +1043,14 @@
<!-- Gets passwords -->
<input
message="Please enter keystore password (store:${key.store}):"
- addproperty="key.store.password" />
+ addproperty="key.store.password">
+ <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
+ </input>
<input
message="Please enter password for alias '${key.alias}':"
- addproperty="key.alias.password" />
+ addproperty="key.alias.password">
+ <handler classname="org.apache.tools.ant.input.SecureInputHandler" />
+ </input>
</target>
<!-- called through target 'release'. Only executed if there's no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment