RE: Mail task on Target failure

2011-08-05 Thread Martin Gainty
mporte 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 aucu

Re: Mail task on Target failure

2011-08-05 Thread Laura Dean
I know TeamCity does keep the logs, or can be configured to do so. It does for us. Laura On Fri, Aug 5, 2011 at 1:16 PM, glenn opdycke-hansen wrote: > +1 CI Servers. > It can be used to call an Ant script and email if there is success or > failure. We notice that for some CI servers the log wa

Re: Mail task on Target failure

2011-08-05 Thread glenn opdycke-hansen
+1 CI Servers. It can be used to call an Ant script and email if there is success or failure. We notice that for some CI servers the log was not kept, which is important for error situations. But they are easy to set up, so it worth investigating. --glenn On Fri, Aug 5, 2011 at 09:32, Laura D

Re: Mail task on Target failure

2011-08-05 Thread Laura Dean
To take a different approach: have you considered using a continuous integration server? This is exactly the sort of thing they're good at, and then your ant setup could just worry about building. I've used TeamCity and have heard good things about Jenkins ( http://jenkins-ci.org/), but probably

RE: Mail task on Target failure

2011-08-05 Thread Adam Bruss
You could let the build go if an exec fails and store the result in an xml file. Then at the end check all the results and if one is non-zero fail after sending mail. To sum up, store the results of your tasks and check them all at the end. Send mail and then use the task if you need to fail

Re: Mail task on Target failure

2011-08-05 Thread Stefan Bodewig
On 2011-08-05, vino_hymi wrote: > I have ant project where there is set of targets. After successful > completion of all targets I call mail target at the end to send a mail with > attached logs with message build successful. > Now, my challenge is if one of the target fails then build exits so i

Re: Mail task on Target failure

2011-08-05 Thread Parag Doke
There is the try/catch task in antcontrib (http://ant-contrib.sourceforge.net/tasks/tasks/index.html) that allows you to catch exceptions in tasks. I haven't tried this anytime ... but maybe you could try calling a target within such a block. Thanks, Parag Doke Save paper, save trees. Do not print

Re: Mail task on Target failure

2011-08-05 Thread Vimil Saju
Use the trycatch task from ant-contrib From: vino_hymi To: user@ant.apache.org Sent: Friday, August 5, 2011 2:02 AM Subject: Mail task on Target failure Hi, I have ant project where there is set of targets. After successful completion of all targets I call mail