diff --git a/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/DeployToServerState.java b/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/DeployToServerState.java index 4ede228f69cd..62beadcd50dd 100644 --- a/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/DeployToServerState.java +++ b/platform/remote-servers/impl/src/com/intellij/remoteServer/impl/runtime/DeployToServerState.java @@ -61,17 +61,23 @@ public class DeployToServerState debugConnector; + final DebugConnector debugConnector; if (DefaultDebugExecutor.getDebugExecutorInstance().equals(executor)) { debugConnector = myServer.getType().createDebugConnector(); } else { debugConnector = null; } - connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, project, debugConnector, myEnvironment), new ParameterizedRunnable() { + connection.computeDeployments(new Runnable() { @Override - public void run(String s) { - RemoteServersView.getInstance(project).showDeployment(connection, s); + public void run() { + connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, project, debugConnector, myEnvironment), + new ParameterizedRunnable() { + @Override + public void run(String s) { + RemoteServersView.getInstance(project).showDeployment(connection, s); + } + }); } }); return null;