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 242465
Collapse All | Expand All

(-)src/org/eclipse/datatools/connectivity/drivers/DriverManager.java (-1 / +23 lines)
Lines 858-864 Link Here
858
858
859
				if (Platform.getBundle(pluginId) != null) {
859
				if (Platform.getBundle(pluginId) != null) {
860
					String entry = File.separator + restOfPath + File.separator;
860
					String entry = File.separator + restOfPath + File.separator;
861
					URL url = Platform.getBundle(pluginId).getEntry(entry);
861
					URL url = null;
862
					if (restOfPath == null || restOfPath.trim().length() == 0) {
863
						try {
864
							String path2 = FileLocator.resolve(Platform.getBundle(pluginId).getEntry("/")).getPath();//$NON-NLS-1$
865
							if (path2.endsWith("!/"))//$NON-NLS-1$
866
								path2 = path2.substring(0, path2.length() - 2);
867
							url = new URL(path2);
868
						} catch (IOException e) {
869
							String[] strs = new String[] { pluginId
870
									+ restOfPath};
871
							System.err.println(DriverMgmtMessages.format(
872
									"DriverMgmtPlugin.FileMissing", strs)); //$NON-NLS-1$
873
							ConnectivityPlugin
874
									.getDefault()
875
									.log(
876
											DriverMgmtMessages
877
													.format(
878
															"DriverMgmtPlugin.FileMissing", strs)); //$NON-NLS-1$
879
						}
880
					}
881
					else {
882
						url = Platform.getBundle(pluginId).getEntry(entry);
883
					}
862
					if (url != null) {
884
					if (url != null) {
863
						try {
885
						try {
864
							url = FileLocator.toFileURL(url);
886
							url = FileLocator.toFileURL(url);

Return to bug 242465