Thanks Kev, this is a great help also. The more standard the better ! 

-----Original Message-----
From: Kev Jackson [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to