ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Inger <ma...@sedonacorp.com>
Subject Re: Tasks sharing in-memory objects?
Date Fri, 03 Aug 2001 18:30:55 GMT
Mark Womack wrote:

>I apologize if this is a basic question.
>
>Is it possible for a task to share an object that it has created with
>subsequent tasks?
>
>I am going to write some tasks to manipulate a list of items.  The first
>task would load the list (it is in xml) and store it in some
>global/accessible area.  Then subsequent tasks will access the list and
>manipulate it. Then the final task will write it out to a resulting xml
>file.
>
>Is this possible?  Or will I be required to write the list out at the end of
>a task and then read it back in at the start of a task?
>
>Thanks!
>-Mark
>
>
I would think that as long as the data is stored in some static hashmap 
or something,
you should be able to get to it.  I wouldn't think thread safeness would 
be an issue,
since ant itself seems to only process in one thread.


-- 
Matt Inger (matt.inger@sedonacorp.com)
Sedona Corporation
455 S. Gulph Road, Suite 300
King of Prussia, PA 19406
(484) 679-2213
"Self-respect - the secure feeling that no one,
 as yet, is suspicious." -H.L. Mencken 




Mime
View raw message