Grokbase Groups Ant user March 2009
FAQ

[Ant-user] How to combine the values of 2 property files and putting into another property name

Gilbert Rebhan
Mar 24, 2009 at 7:13 pm

Gilbert Rebhan schrieb:
Gilbert Rebhan schrieb:
David Weintraub schrieb:
On Tue, Mar 24, 2009 at 6:21 AM, NR031 wrote:
<property name="project-URL" value="${${name1}-URL}">
That doesn't work. See:
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
[...]

you may try the <var> task from antcontrib,
i believe the variable task from antelope will work too.

see=
http://marc.info/?l=ant-user&m=121318477419672&w=2
P.S. :

there's also a solution from the ant faq you might consider
if you don't already use antcontrib | antelope, see =

http://ant.apache.org/faq.html#propertyvalue-as-name-for-property
P.S. again ;-)

finally with <script language="ruby|groovy|javascript|beanshell ...>
you push the boundary of 'normal' task usage, as you have all
the features of a real scripting language at your fingertips and
full access to the ant api.


Regards,Gilbert



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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›