Author: rob.stryker(a)jboss.com
Date: 2011-02-22 16:52:56 -0500 (Tue, 22 Feb 2011)
New Revision: 29273
Modified:
branches/jbosstools-3.2.x/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/archives/RSEZippedJSTPublisher.java
Log:
JBIDE-8388 to branch
Modified:
branches/jbosstools-3.2.x/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/archives/RSEZippedJSTPublisher.java
===================================================================
---
branches/jbosstools-3.2.x/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/archives/RSEZippedJSTPublisher.java 2011-02-22
21:40:25 UTC (rev 29272)
+++
branches/jbosstools-3.2.x/as/plugins/org.jboss.ide.eclipse.as.rse.core/src/org/jboss/ide/eclipse/as/rse/core/archives/RSEZippedJSTPublisher.java 2011-02-22
21:52:56 UTC (rev 29273)
@@ -17,7 +17,10 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Status;
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
+import org.eclipse.rse.services.files.IFileService;
+import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSystem;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.model.IModuleResourceDelta;
@@ -59,6 +62,9 @@
int publishType, IModuleResourceDelta[] delta,
IProgressMonitor monitor) throws CoreException {
+ if( module.length > 1 )
+ return Status.OK_STATUS;
+
// Locally zip it up into the remote tmp folder
IStatus sup = super.publishModule(method, server, module, publishType, delta,
monitor);
@@ -73,6 +79,8 @@
String name = sourcePath.lastSegment();
// Now transfer the file to RSE
+ IFileService fs = method2.getFileService();
+ IFileServiceSubSystem system = method2.getFileServiceSubSystem();
try {
method2.getFileService().upload(sourcePath.toFile(), destFolder.toString(), name,
true, null, null, new NullProgressMonitor());
//method2.getFileService().move(tempDestFolder.toString(), name,
destFolder.toString(), name, new NullProgressMonitor());
Show replies by date