Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
New Feature Request - passwordChar on <input > task

New Feature Request - passwordChar on <input > task

2005-05-05       - By Jeffrey E Care
Reply:     1     2     3  

Check the archives, this has been discussed ad-nauseum.

In summary, it's basically impossible to do in a portable, reliable way
without there being native support for this in the VM.

JEC
--
Jeffrey E. Care (carej@(protected))
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


Ninju Bohra <ninju_bohra@(protected)> wrote on 05/05/2005 03:31:49 PM:

> 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

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.