Hi,

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

=== ant2.xml ===
<import file="ant1.xml" />
<target name="main">
        <antcall target="t1">
                <param name="foo" value="myvalue" />
        </antcall>
</target>
=== 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

Reply via email to