ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: passing Ant property values to new build
Date Fri, 05 Nov 2004 16:48:43 GMT
> From: Casey Daniell [mailto:CDaniell@realm.com]
> Here is the problem. I am have one ant script calling another via the
ant
> task. I want the value of a property to be transmitted to the new
build
> not
> the string literal itself.
> 
> Ex.
>    basedir == /foo (not in any syntax)
> 
>    <property name="tools.home"  value="${basedir}/../tools" />
>    <property name="stack.home" value="${basedir}/../stack" />
> 
> ......
> 
>    <subant buildpath="common/build.xml" target="dist"
inheritAll="false" >
>       <property name="tools.home"  value="${tools.home}" />
>       <property name="stack.home"  value="${stack.home}" />
>    </subant>
> 
> 
> This code snippet sends ${tools.home} to the ant script that is called
not
> the wanted /foo/../tools

This can only happen if tools.home is not defined at the point <subant>
is called. In any case, you might want to look into <propertyset>. --DD

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


Mime
View raw message