List Info

Thread: RE: supressing output




RE: supressing output
country flaguser name
United States
2007-09-17 12:07:56
Gilbert, That looks pretty cool. Is the code copyrighted?
Any chance
this could be added to Ant as a standard feature?

-Rob Anderson


> -----Original Message-----
> From: Gilbert Rebhan [mailto:antschillbaer.de] 
> Sent: Thursday, September 13, 2007 10:41 AM
> To: Ant Users List
> Subject: Re: supressing output
> 
> Hi,
> 
> phil swenson wrote:
> > I have an external build.xml file that I am
calling from my 
> build.xml...
> > unfortunately this target outputs a whole bunch of
stuff I 
> don't care 
> > about and it pollutes my build log files.  What I
want is 
> just error output...
> > anyone have any thoughts on supressing the
output?
> > 
> > thanks
> > phil
> 
> You could use the <setloglevel> task, see
> 
> http://marc.info/?l=ant-user&m=115504180503962&
;w=2
> 
> and set the loglevel to error before starting your
external build =
> 
> <setloglevel level="error"/>
> <ant antfile="subdir/external.xml"
>       dir="subdir"
>       target="foobar"
> />
> 
> Regards, Gilbert
> 
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: user-unsubscribeant.apache.org For 
> additional commands, e-mail: user-helpant.apache.org
> 
> 
> 


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


RE: supressing output
user name
2007-09-18 04:08:36
 
Hi, Rob


-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:Rob.Andersonnike.com]

Sent: Monday, September 17, 2007 7:08 PM
To: Ant Users List; Ant Developers List
Subject: RE: supressing output

/*
Gilbert, That looks pretty cool. Is the code copyrighted?
Any chance
this could be added to Ant as a standard feature?

-Rob Anderson


> -----Original Message-----
> From: Gilbert Rebhan [mailto:antschillbaer.de] 
> Sent: Thursday, September 13, 2007 10:41 AM
> To: Ant Users List
> Subject: Re: supressing output
> 
> Hi,
> 
> phil swenson wrote:
> > I have an external build.xml file that I am
calling from my 
> build.xml...
> > unfortunately this target outputs a whole bunch of
stuff I 
> don't care 
> > about and it pollutes my build log files.  What I
want is 
> just error output...
> > anyone have any thoughts on supressing the
output?
> > 
> > thanks
> > phil
> 
> You could use the <setloglevel> task, see
> 
> http://marc.info/?l=ant-user&m=115504180503962&
;w=2
> 
> and set the loglevel to error before starting your
external build =
> 
> <setloglevel level="error"/>
> <ant antfile="subdir/external.xml"
>       dir="subdir"
>       target="foobar"
> />

*/

I didn't want to take credit for code someone else wrote, i
already
stated it's not mine, see =
http://marc.info/?l=ant-user&m=115510613310229&
;w=2
only had to do a little fix in the setLevel() method to make
it work.

Don't remember any copyright issues, oops i alreay altered
the original
code 

Once saw that neat little task on a weblog and put it in my
snippets
folder, but don't remember where i found it.

And i did that post some time ago, =
http://marc.info/?l=ant-user&m=115504180503962&
;w=2
cause i use the setloglevel task quite often and find it
very useful and
someone else asked for such a feature.

That task should definitely be part of core ant.


Regards, Gilbert

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeant.apache.org
For additional commands, e-mail: dev-helpant.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )