ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Reinitializing static variables
Date Tue, 20 Mar 2007 09:18:20 GMT
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:pasala.ravi@gmail.com] 
>Gesendet: Dienstag, 20. März 2007 07:54
>An: user@ant.apache.org
>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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message