[jbosstools-commits] JBoss Tools SVN: r6768 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Mar 7 09:10:58 EST 2008
Author: dgeraskov
Date: 2008-03-07 09:10:58 -0500 (Fri, 07 Mar 2008)
New Revision: 6768
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1845
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2008-03-07 14:05:49 UTC (rev 6767)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/launch/CodeGenerationLaunchDelegate.java 2008-03-07 14:10:58 UTC (rev 6768)
@@ -212,7 +212,7 @@
String outputPathRes = PathHelper.getLocationAsStringPath(attributes.getOutputPath());
- if (outputPathRes == null){
+ if (outputPathRes == null && StringHelper.isNotEmpty(attributes.getOutputPath())){
ContainerCreator cc = new ContainerCreator(ResourcesPlugin.getWorkspace(), PathHelper.pathOrNull(attributes.getOutputPath()));
IFolder folder = (IFolder) cc.createContainer(new NullProgressMonitor());
if (folder != null) {
@@ -222,7 +222,7 @@
final String fOutputPathRes = outputPathRes;
String templatePath = PathHelper.getLocationAsStringPath(attributes.getTemplatePath());
- if (templatePath == null){
+ if (templatePath == null && StringHelper.isNotEmpty(attributes.getTemplatePath())){
ContainerCreator cc = new ContainerCreator(ResourcesPlugin.getWorkspace(), PathHelper.pathOrNull(attributes.getTemplatePath()));
IFolder folder = (IFolder) cc.createContainer(new NullProgressMonitor());
if (folder != null) {
More information about the jbosstools-commits
mailing list