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 03:00:23 UTC

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

Author: mriou
Date: Thu Sep 28 18:00:22 2006
New Revision: 451078

URL: http://svn.apache.org/viewvc?view=rev&rev=451078
Log:
Fixed resolving of resources.

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=451078&r1=451077&r2=451078
==============================================================================
--- 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 18:00:22 2006
@@ -25,8 +25,10 @@
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.FileInputStream;
 import java.net.MalformedURLException;
 import java.net.URI;
+import java.net.URISyntaxException;
 
 
 public class DefaultWsdlFinder implements WsdlFinder {
@@ -54,7 +56,8 @@
     }
 
     public InputStream openResource(URI uri) throws MalformedURLException, IOException {
-        return uri.toURL().openStream();
+        String strUri = uri.getPath();
+        return new FileInputStream(new File(_suDir, strUri));
     }
 
 }