Hello Ninju,

sometimes ago I also tackled down the problem of
entering passwords (sensitive information) via input
task and I documented my attempts in an article called
"Extending Ant Input Abilities". You can find it on
[1], the first one in section articles.

In short, the way Ant reads its input is managed by
the so called InputHandlers (subclasses of
org.apache.tools.ant.input.InputHandler). I wrote
PasswordInputHandler that replace every letter typed
on the terminal with asterisk (*). Unfortunately,
besides that article I had no time to writre decent
docs.

At the time I announce it [2], Dale Anson asked me
whether I would like to contribute
PasswordInputHandler in ant-contrib and I agreed, but
we didn't talked more about this. I still want to
contribute it, so if Ant-Contrib supporters are
reading this and still are interested, please do not
hesitate to contact me.

HTH Ivan

[1]http://ant.apache.org/resources.html
[2]http://marc.theaimsgroup.com/?l=ant-user&m=109238228719555&w=2
--- Ninju Bohra <[EMAIL PROTECTED]> wrote:
> Hello all,
>  
> I have created some targets that run <sql> tasks and
> for determing the user name & password information
> to use (for the DB login) I use the <input> task,
> i.e.
>  
> <target name="update_build">
>      <input addproperty="db.user.name" message="What
> is your database name"/>
>      <input addproperty="db.password" message="What
> is your database password"/>
>      <sql>
>           .
>           .
>           .
>      </sql>
> </target>
>  
> It would be great to have an optional attribute of
> the <input> task, let's say called passwordChar,
> that if set would control which character(s) to
> display instead of echoing the keyboard input.  So
> you could use
>      <input addproperty="db.password"
> passwordChar="*" message="What is your database
> password"/>
>  
> and all that would show up as the user types would a
> series of * (astericks)...
>  
> What do you guys think??
> 
>  
> 
>               
> ---------------------------------
> Yahoo! Mail
>  Stay connected, organized, and protected. Take the
tour



                
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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

Reply via email to