it isn't being evaulated because of the way you are pulling it back.
Try using the value of ${name} in the unjar statement.

- Brett


On Thu, 17 Feb 2005 19:57:37 -0800, Mark Donszelmann
<[EMAIL PROTECTED]> wrote:
> Hi
> 
> I have an x.properties file like this:
> 
> file=somedir/${specific}/myfile.jar
> 
> I load this properties file in maven like this:
> 
> <util:properties var="props" file="x.properties" />
> 
> I set "specific" like this:
> 
> <jelly:set scope="parent" var="specific" value="here" />
> (not sure why I needed scope="parent" here, but otherwise the echo below did 
> not work.
> There seems to be no doc on the scopes one can set, or maybe I missed it).
> 
> When I then say:
> 
> <j:set var="name" value="${props.getProperty('file')}" />
> <echo>${name}</echo>
> 
> it writes correctly:
> 
>     [echo] somedir/here/myfile.jar
> 
> but when I say:
> 
> <ant:unjar src="${file}" ..... />
> 
> ant complains that it does not find file:
> 
> somedir/${specific}/myfile.jar
> 
> Any idea why?
> 
> Regards
> Mark Donszelmann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to