ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bizard Nicolas (KIRO 41)" <nicolas.biz...@credit-suisse.com>
Subject RE: Ant scp / user/password proper management
Date Thu, 08 Nov 2007 07:46:03 GMT
Thanks Kev, this is a great help also. The more standard the better ! 

-----Original Message-----
From: Kev Jackson [mailto:foamdino@gmail.com] 
Sent: Thursday, November 08, 2007 3:37 AM
To: Ant Users List
Subject: Re: Ant scp / user/password proper management

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


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


Mime
View raw message