Author: nbubna
Date: Fri Jul 6 11:42:02 2007
New Revision: 553990
URL: http://svn.apache.org/viewvc?view=rev&rev=553990
Log:
scope should always be a property of the toolbox no matter how it is set
Modified:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ToolboxConfiguration.java
Modified:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ToolboxConfiguration.java
URL:
http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ToolboxConfiguration.java?view=diff&rev=553990&r1=553989&r2=553990
==============================================================================
---
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ToolboxConfiguration.java
(original)
+++
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/config/ToolboxConfiguration.java
Fri Jul 6 11:42:02 2007
@@ -83,6 +83,9 @@
public void setScope(String scope)
{
this.scope = scope;
+
+ // ensure the scope is also set as a property of the toolbox
+ setProperty("scope", scope);
}
public String getScope()