webwork/src/main/webwork/config XMLActionConfiguration.java,1.16,1.17
[email protected] Sun, 28 Dec 2003 17:12:10 -0800
| 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:/tmp/cvs-serv13119/src/main/webwork/config
Modified Files:
XMLActionConfiguration.java
Log Message:
change file to resource when invalid name in ctor, since we look in classloader, not filesystem.
Index: XMLActionConfiguration.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/config/XMLActionConfiguration.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- XMLActionConfiguration.java 24 Jun 2003 04:24:35 -0000 1.16
+++ XMLActionConfiguration.java 29 Dec 2003 01:12:08 -0000 1.17
@@ -58,7 +58,7 @@
{
URL fileUrl = ClassLoaderUtils.getResource(aName+".xml", XMLActionConfiguration.class);
if (fileUrl == null)
- throw new IllegalArgumentException("No such XML file:"+aName+".xml");
+ throw new IllegalArgumentException("No such XML resource:"+aName+".xml");
actionMappings = getMappingsFromResource(fileUrl);
file = new File(fileUrl.getFile());
if(!file.exists() || !file.canRead())
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click