Author: rob.stryker(a)jboss.com
Date: 2010-01-25 00:49:20 -0500 (Mon, 25 Jan 2010)
New Revision: 19898
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java
Log:
JBIDE-5504 - trying to add more info
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java 2010-01-25
04:54:45 UTC (rev 19897)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.wtp.core/src/org/jboss/ide/eclipse/as/wtp/core/vcf/ModuleExportOperation.java 2010-01-25
05:49:20 UTC (rev 19898)
@@ -114,7 +114,7 @@
export();
} catch (Exception e) {
monitor.worked(CLOSE_WORK);
- throw new ExecutionException(EJBArchiveOpsResourceHandler.Error_exporting__UI_ +
component.getProject().getName(), e);
+ throw new ExecutionException(EJBArchiveOpsResourceHandler.Error_exporting__UI_ +
" " + component.getProject().getName() + ": " + e.getMessage(), e);
}
}
} finally {
@@ -167,7 +167,9 @@
return;
}
}
- }
+ module = modules.length > 0 ? modules[0] : null;
+ return;
+ }
module = null;
}
@@ -266,7 +268,7 @@
protected void export() throws SaveFailureException, CoreException,
InvocationTargetException, InterruptedException {
if( module == null )
- throw new SaveFailureException(); // TODO add some real message
+ throw new SaveFailureException("No module found for given project");
try {
File dest = getDestinationPath().toFile();
File parent = dest.getParentFile();
@@ -292,8 +294,7 @@
addChildren(saver, module, moduleDelegate.getChildModules());
saver.finish();
} catch( Exception e ) {
- e.printStackTrace();
- throw new SaveFailureException();
+ throw new SaveFailureException(e.getMessage(), e);
}
}
Show replies by date