[jboss-cvs] JBossAS SVN: r95039 - projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/testing/internal.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 16 10:15:48 EDT 2009
Author: thomas.diesler at jboss.com
Date: 2009-10-16 10:15:48 -0400 (Fri, 16 Oct 2009)
New Revision: 95039
Modified:
projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/testing/internal/EmbeddedRuntime.java
Log:
Fix location passed to installBundle
Modified: projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/testing/internal/EmbeddedRuntime.java
===================================================================
--- projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/testing/internal/EmbeddedRuntime.java 2009-10-16 14:04:09 UTC (rev 95038)
+++ projects/jboss-osgi/projects/spi/trunk/src/main/java/org/jboss/osgi/spi/testing/internal/EmbeddedRuntime.java 2009-10-16 14:15:48 UTC (rev 95039)
@@ -23,6 +23,7 @@
// $Id$
+import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -62,10 +63,10 @@
public OSGiBundle installBundle(String location) throws BundleException
{
- location = getTestHelper().getTestArchivePath(location);
+ URL url = getTestHelper().getTestArchiveURL(location);
BundleContext context = getBundleContext();
- Bundle auxBundle = context.installBundle(location);
+ Bundle auxBundle = context.installBundle(url.toExternalForm());
OSGiBundle bundle = new EmbeddedBundle(this, auxBundle);
return registerBundle(location, bundle);
More information about the jboss-cvs-commits
mailing list