commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (JELLY-27) variables not inherited into nested scripts > level 1
Date Fri, 27 Aug 2004 08:27:21 GMT

   The following issue has been closed.

   Resolver: dion gillard
       Date: Fri, 27 Aug 2004 1:26 AM

JellyContext.getVariable now only calls parent.getVariable.
View the issue:

Here is an overview of the issue:
        Key: JELLY-27
    Summary: variables not inherited into nested scripts > level 1
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: jelly
   Fix Fors:

   Assignee: james strachan
   Reporter: Christian Sell

    Created: Thu, 30 Jan 2003 12:13 PM
    Updated: Fri, 27 Aug 2004 1:27 AM

I have a jelly script which imports another one. The outer script is executed from an ANT
task through AntTagLibrary. I find that variables which are defined as ANT properties are
not passed into the inner script, even though inherit=true (default).

The reason is that the JellyContex.getVariable(String) method calls parent.*findVariable*(String).
However, AntJellyContext only overrides getVariable(String), so it is never called from the
inner context.

Should AntJellyContext override *findVariable* also? It seems questionable to me to have getVariable
call findVariable in the first place. Shouldnt that be getVariable again? And what is the
distinction between the 2 anyway? I would have provided a patch, if there werent so many questions.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message