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));
}
}