ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Champlon <m.champ...@free.fr>
Subject Re: build.properties input select
Date Sat, 14 Oct 2006 10:06:22 GMT
Hello,

Edward Mann a écrit :
> (...)
>                 <property name="project.home" value="${project.name}.home" />
> (...)
>   

Right here you probably want instead something like

                <property name="project.home" value="${${project.name}.home}" />

However you cannot do this as the properties are only evaluated once.
To solve this you can use the <propertycopy> task from ant-contrib : 
http://ant-contrib.sourceforge.net/tasks/tasks/propertycopy.html

So instead you would have :

                <propertycopy property="project.home" from="${project.name}.home" />


I hope this helps.


MAT.

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


Mime
View raw message