Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 387611
Collapse All | Expand All

(-)src/org/eclipse/equinox/internal/simpleconfigurator/ConfigApplier.java (-4 / +16 lines)
Lines 195-204 Link Here
195
			if (current == null) {
195
			if (current == null) {
196
				try {
196
				try {
197
					current = manipulatingContext.installBundle(bundleLocation);
197
					current = manipulatingContext.installBundle(bundleLocation);
198
					if (!version.equals(current.getVersion()) || !symbolicName.equals(current.getSymbolicName()))
198
					if (symbolicName != null && version != null) {
199
						// can happen if, for example, the new version of the bundle is installed
199
						Version v;
200
						// to the same bundle location as the old version
200
						try {
201
						current.update();
201
							v = new Version(version);
202
							if (!symbolicName.equals(current.getSymbolicName()) || !v.equals(current.getVersion())) {
203
								// can happen if, for example, the new version of the bundle is installed
204
								// to the same bundle location as the old version
205
								current.update();
206
							}
207
						} catch (IllegalArgumentException e) {
208
							// invalid version string; should log
209
							e.printStackTrace();
210
						}
211
					}
202
212
203
					if (Activator.DEBUG)
213
					if (Activator.DEBUG)
204
						System.out.println("installed bundle:" + finalList[i]); //$NON-NLS-1$
214
						System.out.println("installed bundle:" + finalList[i]); //$NON-NLS-1$
Lines 307-312 Link Here
307
				continue;
317
				continue;
308
			if (packageAdminService.getBundleType(bundle) == PackageAdmin.BUNDLE_TYPE_FRAGMENT)
318
			if (packageAdminService.getBundleType(bundle) == PackageAdmin.BUNDLE_TYPE_FRAGMENT)
309
				continue;
319
				continue;
320
			if (bundle.getBundleId() == 0)
321
				continue;
310
322
311
			try {
323
			try {
312
				bundle.start();
324
				bundle.start();

Return to bug 387611