ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Abley <james.ab...@volantis.com>
Subject Re: Hidden property values with debug verbosity?
Date Wed, 10 Jan 2007 08:43:42 GMT
Why can't you filter ANT's output before it goes to the log?

ant -f some-build-file.xml | grep -v ' some patterns here' > ant-output.log

Cheers,

James

Richard_Landon@capgroup.com wrote:
> Does anyone have a method to suppress echo of selected property value when
> debugging is enabled?
> 
> I am thinking of making a local change to the PropertyHelper class to print
> "value hidden" for properties some how identified.
> I wanted to check if anyone has another solution?
> 
> I am thinking of something like -Dant.hidden=<delimited list of property
> values>
> that contains a blank or comma delimited set of properties whose value
> should never be output even IF debug is set.
> Rather, the string "value hidden" will be shown.
> I thought about a custom logger, but decided it was too complicated (maybe
> I bite off more than I can chew).
> 
> We are using ANT to script installation in production systems and do not
> want to output the values for certain properties to
> show up in logs and things.
> 
> Maybe this can or should be added to the ANT core?
> 
> 
> ---------------------------------------------------------------------
> 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