[teiid-commits] teiid SVN: r1061 - trunk/client-jdbc/src/main/java/com/metamatrix/jdbc.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Tue Jun 16 17:58:15 EDT 2009


Author: rareddy
Date: 2009-06-16 17:58:15 -0400 (Tue, 16 Jun 2009)
New Revision: 1061

Modified:
   trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java
Log:
TEIID-672: Adding only when it is not "classpath:" protocol mode.

Modified: trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java
===================================================================
--- trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java	2009-06-16 18:51:45 UTC (rev 1060)
+++ trunk/client-jdbc/src/main/java/com/metamatrix/jdbc/EmbeddedDriver.java	2009-06-16 21:58:15 UTC (rev 1061)
@@ -356,18 +356,18 @@
             if (!EmbeddedDriver.getDefaultConnectionURL().equals(dqpURL.toString())) {
 	            runtimeClasspathList.addAll(libClassPath(dqpURL, libLocation+"patches/", MMURLConnection.REVERSEALPHA)); //$NON-NLS-1$
 	            runtimeClasspathList.addAll(libClassPath(dqpURL, libLocation, MMURLConnection.DATE));
-            }
             
-            try {
-	            String configLocation = props.getProperty(DQPEmbeddedProperties.VDB_DEFINITION, "./deploy/"); //$NON-NLS-1$ 
-	            if (!configLocation.endsWith("/")) { //$NON-NLS-1$
-	            	configLocation = configLocation + "/"; //$NON-NLS-1$
-	            }
-	            runtimeClasspathList.add(URLHelper.buildURL(dqpURL, configLocation));
-            } catch(IOException e) {
-            	// ignore..
+	            try {
+		            String configLocation = props.getProperty(DQPEmbeddedProperties.VDB_DEFINITION, "./deploy/"); //$NON-NLS-1$ 
+		            if (!configLocation.endsWith("/")) { //$NON-NLS-1$
+		            	configLocation = configLocation + "/"; //$NON-NLS-1$
+		            }
+		            runtimeClasspathList.add(URLHelper.buildURL(dqpURL, configLocation));
+	            } catch(IOException e) {
+	            	// ignore..
+	            }            
             }
-            
+                        
             URL[] dqpClassPath = runtimeClasspathList.toArray(new URL[runtimeClasspathList.size()]);
             this.classLoader = new PostDelegatingClassLoader(dqpClassPath, this.getClass().getClassLoader(), new MetaMatrixURLStreamHandlerFactory());
             




More information about the teiid-commits mailing list