Created
October 25, 2012 08:16
-
-
Save ueno1969/3951372 to your computer and use it in GitHub Desktop.
Androidアプリをantでビルドするとき、パスワードの入力を隠す方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
パスワードをコマンドラインで入力するようにして、普通に ant release したら、入力したパスワードがコンソールに表示されたので、それを隠す方法 | |
----------------------------------------------------- | |
build.xmlに以下を追加。 | |
android SDKのtools/ant/build.xmlの一部を修正して、プロジェクトのbuild.xmlに追加 | |
<target name="-release-prompt-for-password" if="has.keystore" unless="has.password"> | |
<input | |
message="Please enter keystore password (store:${key.store}):" | |
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" > | |
<handler classname="org.apache.tools.ant.input.SecureInputHandler" /> | |
</input> | |
</target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment