ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@germane-software.com>
Subject Re: How does one continue with build despite failure?
Date Mon, 23 Jun 2003 17:06:33 GMT
I agree. There are a number of implementations of try/catch around, at 
least one is in ant-contrib. Some lobbying on the ant-dev  list might do it.

Dale


Mariano Benitez wrote:

> still it is very long workaround for a simple enhancement, I don't 
> understand why there is so much reticesence in adding this, It would 
> make developer's life a lot easier. I really don't want to add another 
> jar to my already big enough set of library tools I need for my 
> project. I would prefer an out-of-box solution.
>
> MAriano
>
> Dale Anson wrote:
>
>>
>>
>> Rahul Kumar wrote:
>>
>>> This would mean I will have to download antelope stuff. 
>>
>>
>>
>> Yep.
>>
>>> Doesn't something like that come out of ant out-of-box? 
>>
>>
>>
>> Nope.
>>
>>> Would parallel do the trick here?
>>
>>
>>
>> Nope.
>>
>>>
>>>
>>>
>>>> From: Dale Anson <danson@germane-software.com>
>>>> Reply-To: "Ant Users List" <user@ant.apache.org>
>>>> To: Ant Users List <user@ant.apache.org>
>>>> Subject: Re: How does one continue with build despite failure?
>>>> Date: Fri, 20 Jun 2003 17:13:47 -0700
>>>>
>>>> http://antelope.sourceforge.net/manual/bk03ch07.html
>>>>
>>>> This will do exactly what you're looking for.
>>>>
>>>> Dale
>>>>
>>>>
>>>> Rahul Kumar wrote:
>>>>
>>>>> Yes, in my case, the superproject appears to have no control on 
>>>>> being able to continue on a failure in a sub-project (like ant 
>>>>> dir="xxx").
>>>>>
>>>>>
>>>>>> From: "Harkness, David" <DHarkness@sonypictures.com>
>>>>>> Reply-To: "Ant Users List" <user@ant.apache.org>
>>>>>> To: "Ant Users List" <user@ant.apache.org>
>>>>>> Subject: RE: How does one continue with build despite failure?
>>>>>> Date: Fri, 20 Jun 2003 16:07:00 -0700
>>>>>>
>>>>>> Sounds like "haltonfailure" and "failureproperty" would be handy
>>>>>> arguments to the <ant> task itself. That way the subprojects
will 
>>>>>> fail
>>>>>> when run individually while the superproject can continue running

>>>>>> (at
>>>>>> its own option). Putting this logic at the subproject level 
>>>>>> doesn't make
>>>>>> sense because it's the superproject that should decide whether or

>>>>>> not to
>>>>>> continue building subprojects when any fails.
>>>>>>
>>>>>> Ah for tons of free time to do it myself... :)
>>>>>>
>>>>>> Ciao!
>>>>>>
>>>>>> David Harkness
>>>>>> Sony Pictures Digital Networks
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Rahul Kumar [mailto:rahulk911@hotmail.com]
>>>>>> Sent: Friday, June 20, 2003 3:56 PM
>>>>>> To: user@ant.apache.org
>>>>>> Subject: RE: How does one continue with build despite failure?
>>>>>>
>>>>>>
>>>>>> The default values for haltonfailure and haltonerror is "off" and

>>>>>> these
>>>>>> didn't help.
>>>>>>
>>>>>>
>>>>>> >From: "Atif Pesh-Imam" <apeshimam@sapient.com>
>>>>>> >Reply-To: "Ant Users List" <user@ant.apache.org>
>>>>>> >To: "Ant Users List" <user@ant.apache.org>
>>>>>> >Subject: RE: How does one continue with build despite failure?
>>>>>> >Date: Fri, 20 Jun 2003 15:53:41 -0700
>>>>>> >
>>>>>> ><quotation from manual>
>>>>>> >By using the errorproperty and failureproperty attributes, it
is
>>>>>> >possible to perform setup work (such as starting an external

>>>>>> server),
>>>>>> >execute the test, clean up, and still fail the build in the 
>>>>>> event of a
>>>>>> >failure. </quotation from manual>
>>>>>> >
>>>>>> >So from this documentation it looks like you can utilize these
>>>>>> >properties within your task to get the functionality you need.
 The
>>>>>> >other property to look at is haltonfailure, obviously you want

>>>>>> to make
>>>>>> >sure that this property is set to false.
>>>>>> >
>>>>>> >Check the manual at http://ant.apache.org to get more docs on

>>>>>> the tasks
>>>>>>
>>>>>> >I mentioned above.
>>>>>> >
>>>>>> >Hope this helps.
>>>>>> >
>>>>>> >-a
>>>>>> >
>>>>>> >
>>>>>> >-----Original Message-----
>>>>>> >From: Rahul Kumar [mailto:rahulk911@hotmail.com]
>>>>>> >Sent: Friday, June 20, 2003 3:36 PM
>>>>>> >To: user@ant.apache.org
>>>>>> >Subject: RE: How does one continue with build despite failure?
>>>>>> >
>>>>>> >
>>>>>> >In this particular case, it is junit. Each sub-dir is running
junit
>>>>>> >tests, and the ant build.xml in the root dir invokes the build

>>>>>> in each
>>>>>> >sub-dir. The
>>>>>> >build in the root must continue even if junit is some sub-dir

>>>>>> fails.
>>>>>> >
>>>>>> >
>>>>>> > >From: "Atif Pesh-Imam" <apeshimam@sapient.com>
>>>>>> > >Reply-To: "Ant Users List" <user@ant.apache.org>
>>>>>> > >To: "Ant Users List" <user@ant.apache.org>
>>>>>> > >Subject: RE: How does one continue with build despite failure?
>>>>>> > >Date: Fri, 20 Jun 2003 15:14:35 -0700
>>>>>> > >
>>>>>> > >I assume that you're using the javac task in your all target.

>>>>>> If you
>>>>>> > >are, then you should be able to set failonerror to false.
>>>>>> > >
>>>>>> > >Try that.
>>>>>> > >
>>>>>> > >-a
>>>>>> > >
>>>>>> > >-----Original Message-----
>>>>>> > >From: Rahul Kumar [mailto:rahulk911@hotmail.com]
>>>>>> > >Sent: Friday, June 20, 2003 2:59 PM
>>>>>> > >To: user@ant.apache.org
>>>>>> > >Subject: How does one continue with build despite failure?
>>>>>> > >
>>>>>> > >
>>>>>> > >I have
>>>>>> > >
>>>>>> > ><target name="compile"
>>>>>> > >     <ant dir="test1" target="all"/>
>>>>>> > >     <ant dir="test2" target="all"/>
>>>>>> > ></target>
>>>>>> > >
>>>>>> > >If the build in dir test1 fails, ant bails out and does
not 
>>>>>> proceed
>>>>>> > >with
>>>>>> > >
>>>>>> > >build in test2. I would like the build in test2 to continue

>>>>>> despite
>>>>>> > >failure in test1 (since they don't have any inter-dependency).
>>>>>> > >
>>>>>> > >_________________________________________________________________
>>>>>> > >Help STOP SPAM with the new MSN 8 and get 2 months FREE*
>>>>>> > >http://join.msn.com/?page=features/junkmail
>>>>>> > >
>>>>>> > >
>>>>>> > 
>>>>>> >---------------------------------------------------------------------

>>>>>>
>>>>>> > >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
>>>>>> > >
>>>>>> >
>>>>>> >_________________________________________________________________
>>>>>> >Add photos to your e-mail with MSN 8. Get 2 months FREE*.
>>>>>> >http://join.msn.com/?page=features/featuredemail
>>>>>> >
>>>>>> >
>>>>>> >---------------------------------------------------------------------
>>>>>> >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
>>>>>> >
>>>>>>
>>>>>> _________________________________________________________________
>>>>>> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>>>>>> http://join.msn.com/?page=features/virus
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------

>>>>>>
>>>>>> 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
>>>>>>
>>>>>
>>>>> _________________________________________________________________
>>>>> The new MSN 8: advanced junk mail protection and 2 months FREE*  
>>>>> http://join.msn.com/?page=features/junkmail
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>>
>>>
>>> _________________________________________________________________
>>> Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
>>> http://join.msn.com/?page=features/featuredemail
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message