You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Ja...@rzf.fin-nrw.de on 2005/02/08 09:20:43 UTC

AW: DO NOT REPLY [Bug 33354] - input task should hide passwor d entries

> >
> >http://issues.apache.org/bugzilla/show_bug.cgi?id=33354
> >
> >
> >To call getpass() we'd need a JNI implementation for every 
> platform that ant
> >runs on. 
> >  
> >
> Not necessarily so!
> See here: 
> http://java.sun.com/developer/technicalArticles/Security/pwordmask/
> 
> The problem is known at sun, and a fix pending, but not yet done.
> The article provides a fix, that albeit clumsy, that is a.) backward 
> compatible b.) (mostly) portable.
> 
> Because this might be interesting for more than one project: 
> how about 
> placing a class
> for this into commons io?


I use that scenario in a java course, but there is a drawback: _sometimes_
it happens, that the erasure thread does not delete the first character.
That´s ok for my course - but not for a tool like Ant. (imho)

Jan