You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Adam Bruss <ab...@awrcorp.com> on 2011/07/12 21:42:10 UTC
ant exec task message priority
We run make with the ant exec task
ant 1.7.0 would naturally classify messages from make with priorities of info, warning or error.
ant 1.8.2 classifies all messages from make as priority info!
This causes our cruisecontrol emails to contain no messages from the make build.
Why does ant 1.8.2 not classify messages from exec logs anymore and how can it be fixed?
Thanks,
Adam
Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI 53092 USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abruss@awrcorp.com
W: http://www.awrcorp.com<http://www.awrcorp.com/>
RE: ant exec task message priority
Posted by Martin Gainty <mg...@hotmail.com>.
iif you dont mind the task running as daemon
you can setup a list of daemons in daemons nested element in the parallel task
http://ant.apache.org/manual/Tasks/parallel.html
similar to exec with spawn
http://ant.apache.org/manual/Tasks/exec.html
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> From: abruss@awrcorp.com
> To: user@ant.apache.org
> Subject: RE: ant exec task message priority
> Date: Wed, 13 Jul 2011 16:34:58 +0000
>
> The only change is the ant version used. I've already determined this.
>
> All my build xml files are under version control. The only change was using 1.8.2 instead of 1.7.0 in a cruisecontrol config file for where it looks for the ant binaries to use. I have both the 1.7 and 1.8.2 ant binaries in my repo so I can switch back and forth easily.
>
> I haven't looked at the ant 1.7 docs compared to the ant 1.8 docs so I'll check that out.
>
> Thanks,
> Adam
>
> Adam Bruss
> Senior Development Engineer
> AWR Corporation
> 11520 N. Port Washington Rd., Suite 201
> Mequon, WI 53092 USA
> P: 1.262.240.0291 x104
> F: 1.262.240.0294
> E: abruss@awrcorp.com
> W: http://www.awrcorp.com
>
> -----Original Message-----
> From: Echlin, Robert [mailto:Robert.Echlin@windriver.com]
> Sent: Wednesday, July 13, 2011 11:28 AM
> To: Ant Users List
> Subject: RE: ant exec task message priority
>
> Hi Adam,
> I'm not familiar with any such change in Ant. Which doesn't mean there is none. :-)
>
> Is there a change in the build.xml file?
> Or can you run with the two versions of ant on the same file and get the differences you mention?
>
> Have you looked at the 1.7 and 1.8.2 Ant docs for the ant exec task to see if they show differences of this nature?
>
> Rob
>
> > -----Original Message-----
> > From: Adam Bruss [mailto:abruss@awrcorp.com]
> > Sent: Tuesday, July 12, 2011 3:42 PM
> > To: user@ant.apache.org
> > Subject: ant exec task message priority
> >
> > We run make with the ant exec task
> >
> > ant 1.7.0 would naturally classify messages from make with priorities of info,
> > warning or error.
> >
> > ant 1.8.2 classifies all messages from make as priority info!
> >
> > This causes our cruisecontrol emails to contain no messages from the make
> > build.
> >
> > Why does ant 1.8.2 not classify messages from exec logs anymore and how
> > can it be fixed?
> >
> > Thanks,
> > Adam
> >
> > Adam Bruss
> > Senior Development Engineer
> > AWR Corporation
> > 11520 N. Port Washington Rd., Suite 201
> > Mequon, WI 53092 USA
> > P: 1.262.240.0291 x104
> > F: 1.262.240.0294
> > E: abruss@awrcorp.com
> > W: http://www.awrcorp.com<http://www.awrcorp.com/>
>
>
> ---------------------------------------------------------------------
> 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
>
RE: ant exec task message priority
Posted by Adam Bruss <ab...@awrcorp.com>.
The only change is the ant version used. I've already determined this.
All my build xml files are under version control. The only change was using 1.8.2 instead of 1.7.0 in a cruisecontrol config file for where it looks for the ant binaries to use. I have both the 1.7 and 1.8.2 ant binaries in my repo so I can switch back and forth easily.
I haven't looked at the ant 1.7 docs compared to the ant 1.8 docs so I'll check that out.
Thanks,
Adam
Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI 53092 USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abruss@awrcorp.com
W: http://www.awrcorp.com
-----Original Message-----
From: Echlin, Robert [mailto:Robert.Echlin@windriver.com]
Sent: Wednesday, July 13, 2011 11:28 AM
To: Ant Users List
Subject: RE: ant exec task message priority
Hi Adam,
I'm not familiar with any such change in Ant. Which doesn't mean there is none. :-)
Is there a change in the build.xml file?
Or can you run with the two versions of ant on the same file and get the differences you mention?
Have you looked at the 1.7 and 1.8.2 Ant docs for the ant exec task to see if they show differences of this nature?
Rob
> -----Original Message-----
> From: Adam Bruss [mailto:abruss@awrcorp.com]
> Sent: Tuesday, July 12, 2011 3:42 PM
> To: user@ant.apache.org
> Subject: ant exec task message priority
>
> We run make with the ant exec task
>
> ant 1.7.0 would naturally classify messages from make with priorities of info,
> warning or error.
>
> ant 1.8.2 classifies all messages from make as priority info!
>
> This causes our cruisecontrol emails to contain no messages from the make
> build.
>
> Why does ant 1.8.2 not classify messages from exec logs anymore and how
> can it be fixed?
>
> Thanks,
> Adam
>
> Adam Bruss
> Senior Development Engineer
> AWR Corporation
> 11520 N. Port Washington Rd., Suite 201
> Mequon, WI 53092 USA
> P: 1.262.240.0291 x104
> F: 1.262.240.0294
> E: abruss@awrcorp.com
> W: http://www.awrcorp.com<http://www.awrcorp.com/>
---------------------------------------------------------------------
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
RE: ant exec task message priority
Posted by "Echlin, Robert" <Ro...@windriver.com>.
Hi Adam,
I'm not familiar with any such change in Ant. Which doesn't mean there is none. :-)
Is there a change in the build.xml file?
Or can you run with the two versions of ant on the same file and get the differences you mention?
Have you looked at the 1.7 and 1.8.2 Ant docs for the ant exec task to see if they show differences of this nature?
Rob
> -----Original Message-----
> From: Adam Bruss [mailto:abruss@awrcorp.com]
> Sent: Tuesday, July 12, 2011 3:42 PM
> To: user@ant.apache.org
> Subject: ant exec task message priority
>
> We run make with the ant exec task
>
> ant 1.7.0 would naturally classify messages from make with priorities of info,
> warning or error.
>
> ant 1.8.2 classifies all messages from make as priority info!
>
> This causes our cruisecontrol emails to contain no messages from the make
> build.
>
> Why does ant 1.8.2 not classify messages from exec logs anymore and how
> can it be fixed?
>
> Thanks,
> Adam
>
> Adam Bruss
> Senior Development Engineer
> AWR Corporation
> 11520 N. Port Washington Rd., Suite 201
> Mequon, WI 53092 USA
> P: 1.262.240.0291 x104
> F: 1.262.240.0294
> E: abruss@awrcorp.com
> W: http://www.awrcorp.com<http://www.awrcorp.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: ant exec task message priority
Posted by "Echlin, Robert" <Ro...@windriver.com>.
Hudson must be matching some specific string to identify ERROR, INFO, etc.
Any change to that string would cause Hudson's match to fail.
Any chance there is a change in C compiler co-incidentally here?
Maybe some whitespace is being compressed as it passes through Ant?
I would pipe the output of Ant directly to a file, for each of the two versions,
and a single version of compiler/make.
Then compare the two files. They might not be identical.
I haven't configured Hudson, so I can't tell you how to edit its string matching for your C compiler.
Rob
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Thursday, July 14, 2011 7:33 AM
> To: user@ant.apache.org
> Subject: Re: ant exec task message priority
>
> On 2011-07-12, Adam Bruss wrote:
>
> > ant 1.7.0 would naturally classify messages from make with priorities of
> info, warning or error.
>
> > ant 1.8.2 classifies all messages from make as priority info!
>
> Ant really only reads stderr and stdout from make. For everything that goes
> to stderr it will use ERROR and for everything that goes to stdout it will use
> INFO - and I don't recall any changes here. At least this is the default
> behaviour unless you configure <exec> via its output related attributes or a
> nested redirector.
>
> 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
Re: ant exec task message priority
Posted by Stefan Bodewig <bo...@apache.org>.
On 2011-07-12, Adam Bruss wrote:
> ant 1.7.0 would naturally classify messages from make with priorities of info, warning or error.
> ant 1.8.2 classifies all messages from make as priority info!
Ant really only reads stderr and stdout from make. For everything that
goes to stderr it will use ERROR and for everything that goes to stdout
it will use INFO - and I don't recall any changes here. At least this
is the default behaviour unless you configure <exec> via its output
related attributes or a nested redirector.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org