Author: rineholt
Date: Tue Sep 26 06:27:45 2006
New Revision: 450041

URL: http://svn.apache.org/viewvc?view=rev&rev=450041
Log:
getResourePaths even returns subdirectory names which are then attempted to be 
opened as scdl
since there is no test I know of for file vs directory I think it's safest to 
just look at paths that have a scdl extension.

Modified:
    
incubator/tuscany/java/sca/runtime/webapp-host/src/main/java/org/apache/tuscany/runtime/webapp/WebappRuntimeImpl.java

Modified: 
incubator/tuscany/java/sca/runtime/webapp-host/src/main/java/org/apache/tuscany/runtime/webapp/WebappRuntimeImpl.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/runtime/webapp-host/src/main/java/org/apache/tuscany/runtime/webapp/WebappRuntimeImpl.java?view=diff&rev=450041&r1=450040&r2=450041
==============================================================================
--- 
incubator/tuscany/java/sca/runtime/webapp-host/src/main/java/org/apache/tuscany/runtime/webapp/WebappRuntimeImpl.java
 (original)
+++ 
incubator/tuscany/java/sca/runtime/webapp-host/src/main/java/org/apache/tuscany/runtime/webapp/WebappRuntimeImpl.java
 Tue Sep 26 06:27:45 2006
@@ -136,8 +136,10 @@
             Set<String> paths = 
servletContext.getResourcePaths(extensionScdlPath);
             if (paths != null) {
                 for (String path : paths) {
-                    monitor.deployExtension(path);
-                    deployExtension(rt, path, 
servletContext.getResource(path));
+                    if (path != null && path.endsWith(".scdl")) { 
//getResourePaths even includes sub-directory names. Only look at scdl files.
+                        monitor.deployExtension(path);
+                        deployExtension(rt, path, 
servletContext.getResource(path));
+                    }
                 }
             }
 



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

Reply via email to