ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Can one effect the parent build process from subant?
Date Thu, 18 Aug 2005 05:52:54 GMT
AFAIK <subant> uses the same logic as <ant> - therefore there is no way ... directly.
Your subbuild could write properties file which your master reads after invoking the sub.

    <subant ...>
    <properties file=""/>

    <property name="" value="bar"/>
    <property name="rv.text" value="Hello World"/>
    <echoproperties file=""/>


>-----Urspr√ľngliche Nachricht-----
>Von: Anderson, Rob (Global Trade) [] 
>Gesendet: Mittwoch, 17. August 2005 23:26
>An: Ant Users List
>Betreff: RE: Can one effect the parent build process from subant?
>Properties are immutable. You could probably touch a file in 
>the subant task, and then test whether or not it exists in the 
>calling environment, or something like that.
>-Rob A
>> -----Original Message-----
>> From: Jon Schewe []
>> Sent: Wednesday, August 17, 2005 2:22 PM
>> To: Ant Users List
>> Subject: Can one effect the parent build process from subant?
>> I've got a build.xml that's being executed as part of a subant task.
>> I'd like to change the value of a property in the calling 
>> so that when control goes back to the parent buildfile the new 
>> property value is seen.  Is that possible with ant?
>> ______________________________________________________________
>> __________
>> Jon Schewe | GPG signature at 
>> For I am convinced that neither death nor life, neither angels nor 
>> demons, neither the present nor the future, nor any powers, neither 
>> height nor depth, nor anything else in all creation, will be able to 
>> separate us from the love of God that is in Christ Jesus our Lord. - 
>> Romans 8:38-39
>To unsubscribe, e-mail: For 
>additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message