You could try to use a custom logger which detects that password and masks
it.
Because Ant can't distinguish if an <arg> is 'just' an argument or a
password, there is no built-in solution.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bode...@apache.org]
> Gesendet: Samstag, 25. Februar 2017 15:34
> An: user@ant.apache.org
> Betreff: Re: How to specify a password parameter in Java task
> 
> On 2017-02-24, Al Le wrote:
> 
> > When I run the script with the "-v" option that parameter is also
> > written out to console, in clear text. Is it possible to tell ant to
> > not write out the value in clear text but rather to display it as,
> > say, '***'.
> 
> > Something like <arg value="${myPassword}" isPassword="true"/>
> 
> No there is no such capability within Ant.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional
> commands, e-mail: user-h...@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to