ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farhdine Boutzakhti <farhdine.boutzak...@calyon.com>
Subject RE: Passing data between 2 created tasks
Date Wed, 24 Jan 2007 16:13:15 GMT
Yeah it works. Thank you very much :)

Farhdine.

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Wednesday, January 24, 2007 4:55 PM
To: user@ant.apache.org
Subject: AW: Passing data between 2 created tasks

Store your Stack as reference on the project
 
TaskA {
    public static final String STACKNAME = "someprefix.stack";
    Stack stack;

    public execute() {
        ...
        getProject().addReference(STACKNAME, stack);
    }
}

TaskB {
    public execute() {
        Stack stack = (Stack)getProject().getReference(TaskA.STACKNAME);
        ...
    }
}


Mime
View raw message