You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Santosh Pai <sa...@quagnito.com> on 2006/01/16 13:07:37 UTC

Timeout feature

Hey Everyun,

 

I want to add a *time-out* feature to my build scripts..i.e. if a task
exceeds a pre-defined time limit, I need to croak out the same and exit.

Any help ??

 

Thanks

 

Santosh Pai
Technical Lead 
Quagnito Solutions Pvt. Ltd.  
302 - Kapil Klassic,
Baner Road,
Pune 411 045, India. 

Tel.    +91 20 27200150
Web   www.quagnito.com <http://www.quagnito.com/> 

 

 

 

This e-mail transmission is intended only for the use of the individual or
entity named above and may contain information that is confidential,
privileged, and exempt from disclosure under applicable law. If you are not
the intended recipient, you are hereby notified that any disclosure,
copying, distribution, or use of any of the information contained in this
transmission is strictly PROHIBITED. If you have received this transmission
in error, please immediately notify me by e-mail at the above address. Thank
you.

 

 

 


RE: Timeout feature

Posted by Santosh Pai <sa...@quagnito.com>.
Thanks!!!
'limit' worked for me...;)

-----Original Message-----
From: Dale Anson [mailto:danson@grafidog.com] 
Sent: Monday, January 16, 2006 11:51 PM
To: Ant Users List
Subject: Re: Timeout feature

Also, Ant-Contrib has a 'limit' task to handle such cases.

http://ant-contrib.sourceforge.net



On Mon, 16 Jan 2006, Frank Harnack wrote:

> I would try the Parallel-Task. There is a timeout attribute available.
>
> Regards,
>
> Frank
>
> Quoting Santosh Pai <sa...@quagnito.com>:
>
>> Hey Everyun,
>>
>>
>>
>> I want to add a *time-out* feature to my build scripts..i.e. if a task
>> exceeds a pre-defined time limit, I need to croak out the same and exit.
>>
>> Any help ??
>>
>>
>>
>> Thanks
>>
>>
>>
>> Santosh Pai
>> Technical Lead
>> Quagnito Solutions Pvt. Ltd.
>> 302 - Kapil Klassic,
>> Baner Road,
>> Pune 411 045, India.
>>
>> Tel.    +91 20 27200150
>> Web   www.quagnito.com <http://www.quagnito.com/>
>>
>>
>>
>>
>>
>>
>>
>> This e-mail transmission is intended only for the use of the individual
or
>> entity named above and may contain information that is confidential,
>> privileged, and exempt from disclosure under applicable law. If you are
not
>> the intended recipient, you are hereby notified that any disclosure,
>> copying, distribution, or use of any of the information contained in this
>> transmission is strictly PROHIBITED. If you have received this
transmission
>> in error, please immediately notify me by e-mail at the above address.
Thank
>> you.
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: Timeout feature

Posted by Dale Anson <da...@grafidog.com>.
Also, Ant-Contrib has a 'limit' task to handle such cases.

http://ant-contrib.sourceforge.net



On Mon, 16 Jan 2006, Frank Harnack wrote:

> I would try the Parallel-Task. There is a timeout attribute available.
>
> Regards,
>
> Frank
>
> Quoting Santosh Pai <sa...@quagnito.com>:
>
>> Hey Everyun,
>>
>>
>>
>> I want to add a *time-out* feature to my build scripts..i.e. if a task
>> exceeds a pre-defined time limit, I need to croak out the same and exit.
>>
>> Any help ??
>>
>>
>>
>> Thanks
>>
>>
>>
>> Santosh Pai
>> Technical Lead
>> Quagnito Solutions Pvt. Ltd.
>> 302 - Kapil Klassic,
>> Baner Road,
>> Pune 411 045, India.
>>
>> Tel.    +91 20 27200150
>> Web   www.quagnito.com <http://www.quagnito.com/>
>>
>>
>>
>>
>>
>>
>>
>> This e-mail transmission is intended only for the use of the individual or
>> entity named above and may contain information that is confidential,
>> privileged, and exempt from disclosure under applicable law. If you are not
>> the intended recipient, you are hereby notified that any disclosure,
>> copying, distribution, or use of any of the information contained in this
>> transmission is strictly PROHIBITED. If you have received this transmission
>> in error, please immediately notify me by e-mail at the above address. Thank
>> you.
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: Timeout feature

Posted by Steve Loughran <st...@apache.org>.
Frank Harnack wrote:
> I would try the Parallel-Task. There is a timeout attribute available.
> 
> Regards,
> 
> Frank
> 

I'd be very cautious about handling timeouts in-JVM; there is no 
guarantee that Ant is left in anything resembling a stable state at the 
time of exit -it depends on what the task was doing during timeout. As 
long as the sole action is "exit with a message" everything should be ok


exec and java both let you add a timeout to an external program.


> Quoting Santosh Pai <sa...@quagnito.com>:
> 
>> Hey Everyun,
>>
>>
>>
>> I want to add a *time-out* feature to my build scripts..i.e. if a task
>> exceeds a pre-defined time limit, I need to croak out the same and exit.
>>
>> Any help ??
>>
>>
>>
>> Thanks
>>
>>
>>
>> Santosh Pai
>> Technical Lead
>> Quagnito Solutions Pvt. Ltd.
>> 302 - Kapil Klassic,
>> Baner Road,
>> Pune 411 045, India.
>>
>> Tel.    +91 20 27200150
>> Web   www.quagnito.com <http://www.quagnito.com/>
>>
>>
>>
>>
>>
>>
>>
>> This e-mail transmission is intended only for the use of the individual or
>> entity named above and may contain information that is confidential,
>> privileged, and exempt from disclosure under applicable law. If you are not
>> the intended recipient, you are hereby notified that any disclosure,
>> copying, distribution, or use of any of the information contained in this
>> transmission is strictly PROHIBITED. If you have received this transmission
>> in error, please immediately notify me by e-mail at the above address. Thank
>> you.
>>
>>
>>
>>
>>
>>
>>
>>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Re: Timeout feature

Posted by Frank Harnack <ha...@mail05.harlau.de>.
I would try the Parallel-Task. There is a timeout attribute available.

Regards,

Frank

Quoting Santosh Pai <sa...@quagnito.com>:

> Hey Everyun,
>
>
>
> I want to add a *time-out* feature to my build scripts..i.e. if a task
> exceeds a pre-defined time limit, I need to croak out the same and exit.
>
> Any help ??
>
>
>
> Thanks
>
>
>
> Santosh Pai
> Technical Lead
> Quagnito Solutions Pvt. Ltd.
> 302 - Kapil Klassic,
> Baner Road,
> Pune 411 045, India.
>
> Tel.    +91 20 27200150
> Web   www.quagnito.com <http://www.quagnito.com/>
>
>
>
>
>
>
>
> This e-mail transmission is intended only for the use of the individual or
> entity named above and may contain information that is confidential,
> privileged, and exempt from disclosure under applicable law. If you are not
> the intended recipient, you are hereby notified that any disclosure,
> copying, distribution, or use of any of the information contained in this
> transmission is strictly PROHIBITED. If you have received this transmission
> in error, please immediately notify me by e-mail at the above address. Thank
> you.
>
>
>
>
>
>
>
>





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org