From: "James CE Johnson" <[EMAIL PROTECTED]>
> I have this goal defined:
>
>   <goal name="test:db:prepare" prereqs="db:auto">
>     <echo message="test.database is ${test.database}"/>
>     <j:scope>
>       <echo message="test.database is ${test.database}"/>
>       <j:set var="repository.dir" value="${classes.dir}" />
>       <attainGoal name="test:prepare:db:${test.database}" />
>     </j:scope>
>   </goal>
>
> When I invoke it, I get:
>
> test:db:prepare:
>     [echo] test.database is hypersonic
>     [echo] test.database is
>
> The j:scope is blowing away the value of test.database!?!? That's set in
> my project.properties.
>
> I'm using the mainline as of 11/18.
>
> I need the j:scope so that the 'repository.dir' I create doesn't muck up
> the global namespace. But... the goal I'm trying to attain still needs
> several other global properties.

Sorry this took a while to get to. I finally got chance to create a test
case for this and fixed the bug. It only seemed to show up when using
variables with dots in them (which are handled slightly different as often
dot means 'get the property of the map/bean').

The JellyUnit test case is now working... (testVariablesWithDots at the end
of the file)

http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/jelly/src/test/org/apa
che/commons/jelly/suite.jelly?rev=HEAD

I think its fixed now in CVS HEAD.

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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

Reply via email to