Author: rob.stryker(a)jboss.com
Date: 2007-10-22 21:01:39 -0400 (Mon, 22 Oct 2007)
New Revision: 4433
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
Log:
JBIDE-1126
No warning for deletedmodule
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-10-22
23:26:40 UTC (rev 4432)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-10-23
01:01:39 UTC (rev 4433)
@@ -106,17 +106,15 @@
if (ServerBehaviourDelegate.REMOVED == deltaKind) {
status = unpublish(server, module, monitor);
} else if (kind == IServer.PUBLISH_FULL || kind == IServer.PUBLISH_CLEAN) {
- if( deleted ) {
+ if( deleted )
publishState = IServer.PUBLISH_STATE_UNKNOWN;
- throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID,
"The module cannot be published because it cannot be located. (" + modulePath +
")"));
- }
- status = fullPublish(module, module[module.length-1], monitor);
+ else
+ status = fullPublish(module, module[module.length-1], monitor);
} else if (kind == IServer.PUBLISH_INCREMENTAL || kind == IServer.PUBLISH_AUTO) {
- if( deleted ) {
+ if( deleted )
publishState = IServer.PUBLISH_STATE_UNKNOWN;
- throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID,
"The module cannot be published because it cannot be located. (" + modulePath +
")"));
- }
- status = incrementalPublish(module, module[module.length-1], monitor);
+ else
+ status = incrementalPublish(module, module[module.length-1], monitor);
}
return status;
}