Index: component-matrix/pom.xml
===================================================================
--- component-matrix/pom.xml (revision 112787)
+++ component-matrix/pom.xml (working copy)
@@ -58,7 +58,7 @@
1.0.1
1.0.3
1.0.0.GA
- 1.0.1
+ 1.0.2
1.0.0.GA
3.2.8.GA
3.0.0.GA
Index: main/src/main/org/jboss/Main.java
===================================================================
--- main/src/main/org/jboss/Main.java (revision 112787)
+++ main/src/main/org/jboss/Main.java (working copy)
@@ -24,8 +24,10 @@
import gnu.getopt.Getopt;
import gnu.getopt.LongOpt;
+import java.io.Closeable;
import java.io.File;
import java.io.FilenameFilter;
+import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
@@ -228,6 +230,22 @@
public void shutdown()
{
server.shutdown();
+ final ClassLoader classLoader = server.getClass().getClassLoader();
+ /*
+ * Close the URLCL, if JDK7+
+ * JBBOOT-23
+ */
+ if (classLoader != null && classLoader instanceof Closeable)
+ {
+ try
+ {
+ ((Closeable) classLoader).close();
+ }
+ catch (IOException ioe)
+ {
+ // Swallow
+ }
+ }
}
private URL makeURL(String urlspec) throws MalformedURLException