You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2006/09/29 04:20:01 UTC

svn commit: r451088 - /incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java

Author: mriou
Date: Thu Sep 28 19:20:01 2006
New Revision: 451088

URL: http://svn.apache.org/viewvc?view=rev&rev=451088
Log:
This guy has to be even smarter.

Modified:
    incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java

Modified: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java?view=diff&rev=451088&r1=451087&r2=451088
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java (original)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/DefaultWsdlFinder.java Thu Sep 28 19:20:01 2006
@@ -57,7 +57,9 @@
 
     public InputStream openResource(URI uri) throws MalformedURLException, IOException {
         String strUri = uri.getPath();
-        return new FileInputStream(new File(_suDir, strUri));
+        if (strUri == null) return null;
+        if (new File(strUri).exists()) return new FileInputStream(strUri);
+        else return new FileInputStream(new File(_suDir, strUri));
     }
 
 }