ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21721] - Provide local "properties" within a target
Date Mon, 21 Jul 2003 07:54:49 GMT
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=21721>.
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=21721

Provide local "properties" within a target





------- Additional Comments From jan@materne.de  2003-07-21 07:54 -------
Im not sure whether I understand you right.

If you want to have a kind of variables: this will be refused. Conor had 
written some words to that on the user list: http://marc.theaimsgroup.com/?
l=ant-user&m=105876133024012&w=2

If you want to have the ability to use the same property name inside a target 
which is called multiple times - you have that already:

<target name="main">
    <antcall target="do"><param name="text" value="one"/></antcall>
    <antcall target="do"><param name="text" value="two"/></antcall>
</target>
<target name="do">
    <echo>${text}</echo>
</target>

This example will output "one" and "two". As you can see, ${text} is used 
multiple (twice) times.

You can use other properties, too:

<target name="do">
    <property name="text2" value="${text}"/>
    <echo>${text2}</echo>
</target>

This will do the same, but using a property which is set in the called target.



If you want another thing I need more infos ...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message