You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/08/11 11:14:54 UTC
DO NOT REPLY [Bug 10928] -
antcall doesn't inherit parameters when passed explicitly.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10928>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10928
antcall doesn't inherit parameters when passed explicitly.
peter.reilly@corvil.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
------- Additional Comments From peter.reilly@corvil.com 2003-08-11 09:14 -------
Using:
foobar/build.xml
<project name="foobar" default="dist">
<property name="dist.name" value="mydist"/>
<target name="dist">
<antcall inheritAll="false" target="foobaz">
<param name="dist.dir" value="${dist.name}" />
</antcall>
</target>
<target name="foobaz">
<echo>dist.dir=${dist.dir}</echo>
</target>
</project>
and:
build.xml
<project name="b" default="b">
<target name="b">
<ant dir="foobar" target="dist">
<property name="build.dir" value="build/foobar"/>
<property name="dist.dir" value="dist/foobar"/>
</ant>
</target>
</project>
I get:
Buildfile: build.xml
b:
dist:
foobaz:
[echo] dist.dir=mydist
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org