Author: dgeraskov
Date: 2009-12-23 08:47:51 -0500 (Wed, 23 Dec 2009)
New Revision: 19551
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5570
copy hibernate.properties into seam project
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2009-12-23
13:38:23 UTC (rev 19550)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetAbstractInstallDelegate.java 2009-12-23
13:47:51 UTC (rev 19551)
@@ -763,6 +763,11 @@
dataSourceDsFile = new File(seamGenResFolder, "datasource-ds.xml");
//$NON-NLS-1$
componentsFile = new File(seamGenResFolder, "WEB-INF/components" +
(isWarConfiguration(model) ? "-war" : "") + ".xml");
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ try {
+ hibernateConsolePropsFile = new
File(SeamFacetInstallDataModelProvider.getTemplatesFolder(),
"hibernatetools/hibernate-console.properties"); //$NON-NLS-1$
+ } catch (IOException e) {
+ SeamCorePlugin.getPluginLog().logError(e);
+ }
if (jpaVersion != null) {
IScopeContext context = new ProjectScope(project);
IEclipsePreferences prefs = context.getNode("org.eclipse.jpt.core");
@@ -774,7 +779,7 @@
hibernateConsoleLaunchFile = null;
} else {
try {
- hibernateConsoleLaunchFile = new
File(SeamFacetInstallDataModelProvider.getTemplatesFolder(),
"hibernatetools/hibernate-console_jpa.launch");
+ hibernateConsoleLaunchFile = new
File(SeamFacetInstallDataModelProvider.getTemplatesFolder(),
"hibernatetools/hibernate-console_jpa.launch");//$NON-NLS-1$
} catch (IOException e) {
SeamCorePlugin.getPluginLog().logError(e);
}
@@ -783,7 +788,6 @@
} else {
try {
hibernateConsoleLaunchFile = new
File(SeamFacetInstallDataModelProvider.getTemplatesFolder(),
"hibernatetools/hibernate-console.launch");
- hibernateConsolePropsFile = new
File(SeamFacetInstallDataModelProvider.getTemplatesFolder(),
"hibernatetools/hibernate-console.properties"); //$NON-NLS-1$
} catch (IOException e) {
SeamCorePlugin.getPluginLog().logError(e);
}