ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dieter König <>
Subject Re: param hierarchy inverse to property hierarchy
Date Wed, 12 Nov 2008 15:53:14 GMT

i expected that i will be missunderstood :(. So again:
=== ant1.xml ===
<target name="t1">
        ... do something
        <antcall target="t2">
                <param name="foo" value="bar" />
        ... do something
<target name="t2">
        ... do something
=== ant1.xml ===

=== ant2.xml ===
<import file="ant1.xml" />
<target name="main">
        <antcall target="t1">
                <param name="foo" value="myvalue" />
=== ant2.xml ===

Suppose i have no write access to ant1.xml but i have to use it. 
Furthermore i have to call the target "t1" (and not "t2" directly where 
passing the parameter would work) because all the other logic of "t1" 
should be used also. This way to pass "myvalue" as a value of "foo" doesnt 
work. And i didnt found a way else.
That's why in my opinion the behaviour of ant should be changed. Or do has 
somebody a solution for this problem?

Kind Regards
Dieter König
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message