ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <>
Subject Re: password prompt
Date Thu, 10 Jun 2004 13:12:10 GMT
Hello Mark,

you may find <input> task[1] useful:

<target name="input" description="Prompts for user
    <input message="Enter password"
    <!-- A proof it works. Remove in real use -->
    <echo message="${ssh.pass}"/>

The problem is that <input> does not mask the input
and the passwords are visible when you type them.


--- wrote:
> I have several ant scripts that are used as a
> general deploy script for our
> WebSphere environment.  Because of audit
> requirements I have to capture all
> of the output from the Ant scripts.  I use scp and
> sshexec to do all of the
> remote commands.  A second requirement is if the
> user does not have the ssh
> keys setup they can use interactive password
> authentication.
> Here is my issue I use the -l command to redirect
> all the ant output to the
> log file for audit.
> ant -l ant.log -f build.xml
> How do I get a prompt to show up on the console for
> the user to enter their
> password?  I use the echo command to echo the prompt
> for the input command
> but that output goes to the log and nothing ever is
> shown on the console.
> Let me know if this is not clear and I will try to
> explain it better.
> Mark Russell
> 412-768-9603
> -----------------------------------------
> The contents of this email are the property of PNC.
> If it was not addressed to you, you have no legal
> right to read it. If you think you received it in
> error, please notify the sender. Do not forward or
> copy without permission of the sender.
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message