webwork/src/main/webwork/config DefaultConfiguration.java,1.11,1.12
[email protected] Tue, 06 Jul 2004 16:41:43 -0700
| Newsgroups | gmane.comp.java.open-symphony.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/opensymphony/webwork/src/main/webwork/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31006/src/main/webwork/config
Modified Files:
DefaultConfiguration.java
Log Message:
Allow extra .properties files to be able to add their own .xml configurations lists
Index: DefaultConfiguration.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/config/DefaultConfiguration.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- DefaultConfiguration.java 9 Sep 2002 21:21:17 -0000 1.11
+++ DefaultConfiguration.java 6 Jul 2004 23:41:40 -0000 1.12
@@ -66,7 +66,12 @@
}
}
- // Add list of XML action configurations
+ //reset the delegating config in case we have added some
+ //additional configurations that override webwork.configuration.xml
+ configList = new Configuration[list.size()];
+ config = new DelegatingConfiguration((Configuration[])list.toArray(configList));
+
+ // Add list of XML action configurations
configFiles = new StringTokenizer((String)config.getImpl("webwork.configuration.xml"), ",");
while (configFiles.hasMoreTokens())
{
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com