Store the list as a reference in the project and get it from the second task.
getProject().addReference()
getProject().getReference()
See thread "Passing data between 2 created tasks"
http://marc.info/?l=ant-user&m=116965414616204&w=2
Jan
>-----Ursprüngliche Nachricht-----
>Von: ravi p [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 20. März 2007 07:54
>An: [email protected]
>Betreff: Reinitializing static variables
>
>hi ,
>
>I have written two ant tasks, in one task I have static final
>List object,
>also I am adding objects into this static list object, in
>another task, if I
>want retrieve the objects from the static list, it is giving
>zero results.
>
>Any thoughts , regarding how can I share a static object
>between two tasks..
>?
>
>Thanks
>Ravi.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]