ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: target timeout
Date Fri, 05 Jan 2007 06:24:16 GMT

Hi,

can you give a short snippet to illustrate your problem ?

i use limit like that and it works fine =

<limit maxwait ...>

put all my stuff that should be killed
if not in time, f.e.

<target name=foo">
...
</target>

<target name="bar">
...
</target>

</limit >

if there are any sideeffects with your targets and antcall
it's not a problem with the limit task itself.

Regards, Gilbert



-----Original Message-----
From: martin sweitzer [mailto:msewlists@gmail.com] 
Sent: Thursday, January 04, 2007 11:04 PM
To: Ant Users List
Subject: Re: target timeout

On 12/22/06, martin sweitzer <msewlists@gmail.com> wrote:
> On 12/22/06, Gilbert Rebhan <ant@schillbaer.de> wrote:
> > Hi,
> >
> > martin sweitzer wrote:
> > > Is there a way to have a timeout associated with a <target>?
> > > I would like to put an upper bound on the time a target can run.
I
> >
> > you can go with the <limit> task from antcontrib
> >
> > see = http://ant-contrib.sourceforge.net/tasks/tasks/limit_task.html
> >
>
> Ahh sweet!  Just another layer of indirection and we are styling once
more! :-)
>

Well one side effect is that you need to manually make certain the
depends="" are not duplicated.   Otherwise you get multiple calls to
that target from your antcalls :-(

---------------------------------------------------------------------
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