You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by jh...@apache.org on 2006/09/15 21:03:34 UTC
svn commit: r446691 - in /webservices/muse/trunk/samples/eclipse-osgi:
wsn-consumer/src/org/apache/muse/test/consumer/Activator.java
wsn-producer/src/org/apache/muse/test/producer/Activator.java
Author: jhawkins
Date: Fri Sep 15 12:03:33 2006
New Revision: 446691
URL: http://svn.apache.org/viewvc?view=rev&rev=446691
Log:
MUSE-109 - Use FileLocator to determine Bundle install location
Modified:
webservices/muse/trunk/samples/eclipse-osgi/wsn-consumer/src/org/apache/muse/test/consumer/Activator.java
webservices/muse/trunk/samples/eclipse-osgi/wsn-producer/src/org/apache/muse/test/producer/Activator.java
Modified: webservices/muse/trunk/samples/eclipse-osgi/wsn-consumer/src/org/apache/muse/test/consumer/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/eclipse-osgi/wsn-consumer/src/org/apache/muse/test/consumer/Activator.java?view=diff&rev=446691&r1=446690&r2=446691
==============================================================================
--- webservices/muse/trunk/samples/eclipse-osgi/wsn-consumer/src/org/apache/muse/test/consumer/Activator.java (original)
+++ webservices/muse/trunk/samples/eclipse-osgi/wsn-consumer/src/org/apache/muse/test/consumer/Activator.java Fri Sep 15 12:03:33 2006
@@ -1,21 +1,18 @@
package org.apache.muse.test.consumer;
+import java.io.File;
+
import org.apache.muse.core.platform.osgi.util.BundleRootHelper;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Bundle;
import org.eclipse.core.runtime.FileLocator;
-import java.io.File;
-import java.util.Hashtable;
-import java.util.Properties;
-
public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
String prop = System.getProperty("data.location");
String dir = System.getProperty("user.dir");
- Properties props = System.getProperties();
File root = null;
if(prop == null){
Bundle bundles[] = context.getBundles();
@@ -25,6 +22,7 @@
//Allow the exception to propogate - we're no good without the location
bundles[i].start();
}
+ break;
}
}
root = new File(FileLocator.resolve(context.getBundle().getEntry("/")).getFile());
Modified: webservices/muse/trunk/samples/eclipse-osgi/wsn-producer/src/org/apache/muse/test/producer/Activator.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/eclipse-osgi/wsn-producer/src/org/apache/muse/test/producer/Activator.java?view=diff&rev=446691&r1=446690&r2=446691
==============================================================================
--- webservices/muse/trunk/samples/eclipse-osgi/wsn-producer/src/org/apache/muse/test/producer/Activator.java (original)
+++ webservices/muse/trunk/samples/eclipse-osgi/wsn-producer/src/org/apache/muse/test/producer/Activator.java Fri Sep 15 12:03:33 2006
@@ -1,21 +1,18 @@
package org.apache.muse.test.producer;
+import java.io.File;
+
import org.apache.muse.core.platform.osgi.util.BundleRootHelper;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Bundle;
import org.eclipse.core.runtime.FileLocator;
-import java.io.File;
-import java.util.Hashtable;
-import java.util.Properties;
-
public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
String prop = System.getProperty("data.location");
String dir = System.getProperty("user.dir");
- Properties props = System.getProperties();
File root = null;
if(prop == null){
Bundle bundles[] = context.getBundles();
@@ -25,6 +22,7 @@
//Allow the exception to propogate - we're no good without the location
bundles[i].start();
}
+ break;
}
}
root = new File(FileLocator.resolve(context.getBundle().getEntry("/")).getFile());
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org