Author: max.andersen(a)jboss.com
Date: 2007-06-21 05:13:35 -0400 (Thu, 21 Jun 2007)
New Revision: 2153
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
Log:
fix manifest.mf issues and bad if statement
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2007-06-19
12:26:09 UTC (rev 2152)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2007-06-21
09:13:35 UTC (rev 2153)
@@ -43,8 +43,6 @@
Bundle-Localization: plugin
Export-Package: EDU.oswego.cs.dl.util.concurrent,
META-INF,
- META-INF.maven.jtidy.jtidy,
- META-INF.services,
antlr,
antlr.ASdebug,
antlr.actions.cpp,
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2007-06-19
12:26:09 UTC (rev 2152)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2007-06-21
09:13:35 UTC (rev 2153)
@@ -190,8 +190,9 @@
Properties properties = prefs.getProperties();
if(properties!=null) {
+ // in case the transaction manager is empty then we need to inject a faketm since
hibernate will still try and instantiate it.
String str = properties.getProperty(
"hibernate.transaction.manager_lookup_class" );
- if(StringHelper.isEmpty( str )) {
+ if(str != null && StringHelper.isEmpty( str )) {
properties.setProperty( "hibernate.transaction.manager_lookup_class",
"org.hibernate.console.FakeTransactionManagerLookup");
}
}
Show replies by date