Author: vyemialyanchyk
Date: 2010-10-13 11:48:46 -0400 (Wed, 13 Oct 2010)
New Revision: 25793
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java
Log:
https://jira.jboss.org/browse/JBIDE-7255 - fixed
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java 2010-10-13
14:59:30 UTC (rev 25792)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/preferences/PreferencesClassPathUtils.java 2010-10-13
15:48:46 UTC (rev 25793)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.hibernate.console.preferences;
+import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
@@ -33,8 +34,9 @@
String[] driverURLParts = driverURL.split(";"); //$NON-NLS-1$
urls = new URL[driverURLParts.length];
for (int i = 0; i < driverURLParts.length; i++) {
+ File file = new File(driverURLParts[i].trim());
try {
- urls[i] = new URL("file:/" + driverURLParts[i].trim()); //$NON-NLS-1$
+ urls[i] = file.toURL();
} catch (MalformedURLException e) {
urls[i] = null;
}