Author: jpeterka
Date: 2011-03-15 08:55:49 -0400 (Tue, 15 Mar 2011)
New Revision: 29787
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/DBBean.java
Log:
swtbot: dbbean can return proper internal/external driver name
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/DBBean.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/DBBean.java 2011-03-15
12:54:45 UTC (rev 29786)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/DBBean.java 2011-03-15
12:55:49 UTC (rev 29787)
@@ -114,5 +114,19 @@
throw new IllegalArgumentException("Can't get DB type");
}
+ /**
+ * Returns appropriate JDBC driver name
+ * @return jar driver name or hsqldb if internal
+ */
+ public String getDriverName() {
+ if (internal) {
+ return "hsqldb.jar";
+ }
+ else {
+ String[] all = driverPath.split(File.separator);
+ return all[all.length -1];
+ }
+ }
+
}
\ No newline at end of file
Show replies by date