ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Matèrne (jhm) <apa...@materne.de>
Subject AW: How to specify a password parameter in Java task
Date Mon, 27 Feb 2017 09:32:55 GMT
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:bodewig@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-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org



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


Mime
View raw message