Author: rob.stryker(a)jboss.com
Date: 2010-10-05 00:19:19 -0400 (Tue, 05 Oct 2010)
New Revision: 25476
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java
Log:
JBIDE-7179 - proper fix is making sure we don't try to create a folder with no
segments, as the root folder should already exist
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 2010-10-04
23:02:49 UTC (rev 25475)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/RSERemotePublishHandler.java 2010-10-05
04:19:19 UTC (rev 25476)
@@ -77,8 +77,10 @@
if( createdFolders.contains(toMake))
return new IStatus[]{Status.OK_STATUS};
try {
- method.getFileService().createFolder(toMake.removeLastSegments(1).toString(),
- toMake.lastSegment(), ProgressMonitorUtil.submon(monitor, 30));
+ if( toMake.segmentCount() > 0 ) {
+ method.getFileService().createFolder(toMake.removeLastSegments(1).toString(),
+ toMake.lastSegment(), ProgressMonitorUtil.submon(monitor, 30));
+ }
} catch( SystemMessageException sme ) {
System.err.println("failed to make folder " + toMake.toString());
//$NON-NLS-1$
}