You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Blevins <db...@visi.com> on 2001/12/04 05:18:55 UTC
Silent execution of targets
Hi All,
Simple question.
Is there any option or flag (or anything) I can set on a target so that it
doesn't output anything unless there is an error?
Thanks,
David
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Silent execution of targets
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
You can use the -quiet command-line option, or alternatively write your own
BuildLogger to filter things your own way (using the -logger command-line
option)
Erik
----- Original Message -----
From: "David Blevins" <db...@visi.com>
To: <an...@jakarta.apache.org>
Sent: Monday, December 03, 2001 11:18 PM
Subject: Silent execution of targets
> Hi All,
>
> Simple question.
>
> Is there any option or flag (or anything) I can set on a target so that it
> doesn't output anything unless there is an error?
>
> Thanks,
> David
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Silent execution of targets
Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
The short answer - no, there isn't an option on <target> to silence it
unless there is an error.
You could write your own custom BuildLogger to do this rather easily
though - just have a look at DefaultLogger in Ant's source code. Then use
the -logger command-line switch to use a custom one.
Erik
----- Original Message -----
From: "David Blevins" <db...@visi.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Wednesday, December 05, 2001 7:30 PM
Subject: RE: Silent execution of targets
> All,
>
> I'm curious as to why my question has been ignored. Was there something
> lacking in the post?
>
> Thanks,
> David
>
> > -----Original Message-----
> > From: David Blevins [mailto:dblevins@visi.com]
> > Sent: Monday, December 03, 2001 10:19 PM
> > To: ant-user@jakarta.apache.org
> > Subject: Silent execution of targets
> >
> >
> > Hi All,
> >
> > Simple question.
> >
> > Is there any option or flag (or anything) I can set on a target so that
it
> > doesn't output anything unless there is an error?
> >
> > Thanks,
> > David
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Silent execution of targets
Posted by Steve Loughran <st...@iseran.com>.
There is ant -quiet I suppose, but that applies to a whole build.
----- Original Message -----
From: "David Blevins" <db...@visi.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Wednesday, December 05, 2001 4:30 PM
Subject: RE: Silent execution of targets
> All,
>
> I'm curious as to why my question has been ignored. Was there something
> lacking in the post?
>
> Thanks,
> David
>
> > -----Original Message-----
> > From: David Blevins [mailto:dblevins@visi.com]
> > Sent: Monday, December 03, 2001 10:19 PM
> > To: ant-user@jakarta.apache.org
> > Subject: Silent execution of targets
> >
> >
> > Hi All,
> >
> > Simple question.
> >
> > Is there any option or flag (or anything) I can set on a target so that
it
> > doesn't output anything unless there is an error?
> >
> > Thanks,
> > David
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Silent execution of targets
Posted by David Blevins <db...@visi.com>.
Hi Erik,
You'll have to excuse my second post. It seems my procmail script was a bit
buggy, so didn't get your first (or second) reply. I checked the ant-user
logs and found your replies.
Thanks for the information, I appreciate it. The -quiet option works pretty
slick. I'm definitely interested in the BuildLogger route also.
Thanks!
David
> -----Original Message-----
> From: David Blevins [mailto:dblevins@visi.com]
> Sent: Wednesday, December 05, 2001 6:31 PM
> To: Ant Users List
> Subject: RE: Silent execution of targets
>
>
> All,
>
> I'm curious as to why my question has been ignored. Was there
> something lacking in the post?
>
> Thanks,
> David
>
> > -----Original Message-----
> > From: David Blevins [mailto:dblevins@visi.com]
> > Sent: Monday, December 03, 2001 10:19 PM
> > To: ant-user@jakarta.apache.org
> > Subject: Silent execution of targets
> >
> >
> > Hi All,
> >
> > Simple question.
> >
> > Is there any option or flag (or anything) I can set on a target
> so that it
> > doesn't output anything unless there is an error?
> >
> > Thanks,
> > David
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Silent execution of targets
Posted by David Blevins <db...@visi.com>.
All,
I'm curious as to why my question has been ignored. Was there something
lacking in the post?
Thanks,
David
> -----Original Message-----
> From: David Blevins [mailto:dblevins@visi.com]
> Sent: Monday, December 03, 2001 10:19 PM
> To: ant-user@jakarta.apache.org
> Subject: Silent execution of targets
>
>
> Hi All,
>
> Simple question.
>
> Is there any option or flag (or anything) I can set on a target so that it
> doesn't output anything unless there is an error?
>
> Thanks,
> David
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>