You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2007/05/17 03:30:15 UTC

svn commit: r538785 - /incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java

Author: lresende
Date: Wed May 16 18:30:10 2007
New Revision: 538785

URL: http://svn.apache.org/viewvc?view=rev&rev=538785
Log:
Fixing the code that find extension point implementation not to force closing the jars. This fixes Geronimo integration.

Modified:
    incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java

Modified: incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java?view=diff&rev=538785&r1=538784&r2=538785
==============================================================================
--- incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java (original)
+++ incubator/tuscany/java/sca/modules/host-embedded/src/main/java/org/apache/tuscany/sca/host/embedded/impl/ReallySmallRuntimeBuilder.java Wed May 16 18:30:10 2007
@@ -232,7 +232,7 @@
 
     private static Set<String> getServiceClassNames(URL url) throws IOException {
         Set<String> names = new HashSet<String>();
-        InputStream is = IOHelper.getInputStream(url);
+        InputStream is = url.openStream();
         BufferedReader reader = null;
         try {
             reader = new BufferedReader(new InputStreamReader(is));
@@ -249,6 +249,14 @@
         } finally {
             if (reader != null) {
                 reader.close();
+            }
+            
+            if (is != null){
+                try {
+                    is.close();
+                } catch( IOException ioe) {
+                    //ignore
+                }
             }
         }
         return names;



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org