i would launch n number of ant targets from bash e.g
#!/bin/bash
tname=ant_target_$1 > log
echo "ANT: Running $tname task..."
ant $tname
antReturnCode=$?
echo "ANT: Return code is: \""$antReturnCode"\""
if [ $antReturnCode -ne 0 ];then
echo "BUILD ERROR: I am failing hard..."
else
echo "S
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
+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
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
Yeah, that would suit my purposes. Seems like the first line is the only one
likely to contain a space before the word " more" anyway, aside from the line
we want to strip.
Bob
On Aug 5, 2011, at 8:40 AM, Stefan Bodewig wrote:
> On 2011-08-04, Robert E. Billings III wrote:
>
>> OK, I'll fil
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
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
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
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
On 2011-08-04, Robert E. Billings III wrote:
> OK, I'll fill out a bugzilla report. Thanks for verifying! :)
Would it be enough if we simply started filtering after the first line
of the stack trace? That fix would be easiest to implement.
Stefan
--
Hi,
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 it will
not proceed to mail target wh
11 matches
Mail list logo