Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
; > From: Eric Fetzer > Subject: Re: Do things based on project success or failure > To: "Ant Users List" > Date: Thursday, June 2, 2011, 12:31 PM > > No problem Rob! The way I posted works great, I was just wondering if there > was > a more graceful way to do

Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
ss or failure You could also use the trycatch task from antcontrib. the try task has a catch block that executes when any of the tasks within the try block fails. --- On Thu, 6/2/11, Eric Fetzer wrote: From: Eric Fetzer Subject: Re: Do things based on project success or failure To: "Ant

Re: Do things based on project success or failure

2011-06-02 Thread Vimil Saju
You could also use the trycatch task from antcontrib. the try task has a catch block that executes when any of the tasks within the try block fails. --- On Thu, 6/2/11, Eric Fetzer wrote: From: Eric Fetzer Subject: Re: Do things based on project success or failure To: "Ant Users List&q

Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
Sent: Thu, June 2, 2011 1:29:18 PM Subject: RE: Do things based on project success or failure Hi Eric, I didn't get that ant was failing out on you. Sorry. I will check on that. Rob > -Original Message- > From: Eric Fetzer [mailto:elstonk...@yahoo.com] > Sent: Thursday, Ju

RE: Do things based on project success or failure

2011-06-02 Thread Echlin, Robert
Hi Eric, I didn't get that ant was failing out on you. Sorry. I will check on that. Rob > -Original Message- > From: Eric Fetzer [mailto:elstonk...@yahoo.com] > Sent: Thursday, June 02, 2011 2:22 PM > To: Ant Users List > Subject: Re: Do things based on projec

Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
u, June 2, 2011 10:43:05 AM Subject: RE: Do things based on project success or failure Hi Eric, (code below) Try the "depends with if/unless" pattern. Note the "if" and "unless" parameters on the do.true and do.false targets. "condition" sets a variable dep

Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
from the process and gather a return code on the other side...  Maybe I'm missing something. Thanks, Eric From: "Echlin, Robert" To: Ant Users List Sent: Thu, June 2, 2011 10:02:02 AM Subject: RE: Do things based on project success or failure H

RE: Do things based on project success or failure

2011-06-02 Thread Echlin, Robert
Hi Eric, (code below) Try the "depends with if/unless" pattern. Note the "if" and "unless" parameters on the do.true and do.false targets. "condition" sets a variable depending on something - in this case where a file exists or not. The "top" level target does nothing except make sure other thin

RE: Do things based on project success or failure

2011-06-02 Thread Echlin, Robert
Documentation Systems Architect, Wind River direct: +1.613.270.5796 | robert.ech...@windriver.com > -Original Message- > From: Eric Fetzer [mailto:elstonk...@yahoo.com] > Sent: Thursday, June 02, 2011 11:20 AM > To: Ant Users List > Subject: Re: Do things based on project success or

Re: Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
, June 2, 2011 9:02:14 AM Subject: Do things based on project success or failure I have to update a database one way or another based on project success or failure.  So I'm messing around with the task with errorproperty attribute.  I'm trying to make it so that failure will test

Do things based on project success or failure

2011-06-02 Thread Eric Fetzer
I have to update a database one way or another based on project success or failure.  So I'm messing around with the task with errorproperty attribute.  I'm trying to make it so that failure will test one way vs. success testing another.  The best thing I can come up with is the following: <---