Changeset 24031 in osm for applications/editors/josm
- Timestamp:
- 2010-11-02T21:25:29+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed_fw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed_fw/build.xml
r23958 r24031 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" make it actual" />33 <property name="commit.message" value="smed with embeddes felix and DS" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3514" /> -
applications/editors/josm/plugins/smed_fw/src/smed_fw/RunFW.java
r23913 r24031 17 17 import org.osgi.framework.Constants; 18 18 19 import smed_fw.io.JARFileFilter; 20 19 21 public class RunFW implements BundleActivator{ 20 22 … … 31 33 32 34 File pluginDir = Main.pref.getPluginsDirectory(); 33 35 pluginDirName = pluginDir.getAbsolutePath()+ "/"; 34 36 35 37 … … 60 62 public void start(BundleContext context) throws Exception { 61 63 this.context = context; 62 // Bundle b = context.installBundle("file:" + pluginDirName + "/bundle/de.vogella.felix.firstbundle_1.0.0.201010271606.jar"); 63 Bundle b = context.installBundle("file:" + pluginDirName + "/bundle/de.vogella.felix.firstbundle_1.0.0.201010271606.jar"); 64 b.start(); 64 Bundle b = null; 65 // Bundle b = context.installBundle("file:" + pluginDirName + "bundle/de.vogella.felix.firstbundle_1.0.0.201010271606.jar"); 66 // Bundle b = context.installBundle("file:" + pluginDirName + "bundle/de.vogella.felix.firstbundle_1.0.0.201010271606.jar"); 67 // b.start(); 68 File plugDir = new File(pluginDirName + SmedFW.FW_BUNDLE_LOCATION); 69 70 File[] plugins = plugDir.listFiles(new JARFileFilter()); 71 if(plugins != null) { 72 for(File p : plugins) { 73 b = context.installBundle("file:" + p.getAbsolutePath()); 74 b.start(); 75 } 76 } 65 77 } 66 78 -
applications/editors/josm/plugins/smed_fw/src/smed_fw/SmedFW.java
r23913 r24031 6 6 import java.io.FileOutputStream; 7 7 import java.io.IOException; 8 import java.util.ArrayList; 8 9 import java.util.Enumeration; 10 import java.util.List; 9 11 import java.util.jar.JarEntry; 10 12 import java.util.jar.JarFile; … … 32 34 byte[] buffer = new byte[16384]; 33 35 int len; 36 List<String> lib = new ArrayList<String>(); 37 38 lib.add("org.apache.felix.scr-1.4.0.jar"); 39 lib.add("osgi.cmpn-4.2.1.jar"); 34 40 35 41 String eName = null; … … 64 70 fwFound = false; 65 71 } 66 if(fwFound || fwplugDir.needUpdate(jars,eName)) { 72 if(fwFound || lib.contains(eName)|| fwplugDir.needUpdate(jars,eName)) { 67 73 BufferedOutputStream pos = new BufferedOutputStream(pfos); 68 74 inp = new BufferedInputStream(file.getInputStream( e ));
Note:
See TracChangeset
for help on using the changeset viewer.