Author: rob.stryker(a)jboss.com
Date: 2007-10-24 17:33:42 -0400 (Wed, 24 Oct 2007)
New Revision: 4483
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/SingleFilePublisher.java
Log:
JBIDE-1140 - switched removal error to warning
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-24
21:29:39 UTC (rev 4482)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-10-24
21:33:42 UTC (rev 4483)
@@ -170,7 +170,7 @@
boolean error = localSafeDelete(getDeployPath(module), eventRoot);
if( error ) {
publishState = IServer.PUBLISH_STATE_FULL;
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
"Unable to delete module from server. (" + getModulePath(module) +
")", new Exception("Some files were not removed from the server")));
+ throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID,
"Unable to delete module from server. (" + getModulePath(module) +
")", new Exception("Some files were not removed from the server")));
}
return null;
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java 2007-10-24
21:29:39 UTC (rev 4482)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java 2007-10-24
21:33:42 UTC (rev 4483)
@@ -93,7 +93,7 @@
FileUtil.safeDelete(destFolder.append(sourcePath.lastSegment()).toFile(), l);
if( l.errorFound ) {
publishState = IServer.PUBLISH_STATE_FULL;
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
"Unable to delete module from server.", new Exception("Some files were not
removed from the server")));
+ throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID,
"Unable to delete module from server.", new Exception("Some files were not
removed from the server")));
}
}
Show replies by date