ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kev Jackson <foamd...@gmail.com>
Subject Re: Ant scp / user/password proper management
Date Thu, 08 Nov 2007 02:37:20 GMT
Hi,

> 2) prompt the user. But there is not option to tell ant that the
> password should not be visible (seen as stars would be perfect).


In the upcoming Ant 1.7.1 release you can specify a secure input handler:

<input message="secure-input:>" addproperty="the.password">
   <handler classname="org.apache.tools.ant.input.SecureInputHandler"/>
</input>

This will not echo your password out to the screen.  However:

1 - It requires Java6
2 - 1.7.1 isn't officially out quite yet (give us 2 weeks or so, fingers 
crossed)

If you have Java6 and can wait a little while, then this will be the 
best option.

Thanks,
Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message