AW: How to specify a password parameter in Java task

Jan Matèrne (jhm) <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <000001d290dc$7beead10$73cc0730$@de>
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:[email protected]]
> Gesendet: Samstag, 25. Februar 2017 15:34
> An: [email protected]
> 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: [email protected] For additional
> commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.