[jbosstools-commits] JBoss Tools SVN: r43985 - trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Sep 25 05:53:57 EDT 2012
Author: rob.stryker at jboss.com
Date: 2012-09-25 05:53:57 -0400 (Tue, 25 Sep 2012)
New Revision: 43985
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java
Log:
JBIDE-12585 part1 to trunk
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java 2012-09-25 09:52:00 UTC (rev 43984)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java 2012-09-25 09:53:57 UTC (rev 43985)
@@ -26,11 +26,11 @@
import org.eclipse.rse.core.model.IHost;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
-import org.eclipse.wst.common.project.facet.core.util.internal.ProgressMonitorUtil;
import org.eclipse.wst.server.core.model.IModuleFile;
import org.jboss.ide.eclipse.as.core.publishers.PublishUtil;
import org.jboss.ide.eclipse.as.core.server.IPublishCopyCallbackHandler;
import org.jboss.ide.eclipse.as.core.util.IEventCodes;
+import org.jboss.ide.eclipse.as.core.util.ProgressMonitorUtil;
public class RSERemotePublishHandler implements IPublishCopyCallbackHandler {
protected IPath root;
@@ -57,6 +57,10 @@
}
protected static IStatus generateFailStatus(String message, String resource, RSEPublishMethod method, Exception sme) {
+ String exceptionMsg = sme.getMessage();
+ if( "Missing element for : ''".equals(exceptionMsg)) {
+ sme = new Exception("The requested path is not found on the remote system.", sme);
+ }
String connectionName = method == null ? null : RSEUtils.getRSEConnectionName(method.getBehaviour().getServer());
IHost host = connectionName == null ? null : RSEUtils.findHost(connectionName);
IStatus s = new Status(IStatus.ERROR, RSECorePlugin.PLUGIN_ID, IEventCodes.JST_PUB_FAIL,
More information about the jbosstools-commits
mailing list