Search in sources :

Example 1 with DeploymentTaskImpl

use of com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl in project intellij-community by JetBrains.

the class DeployToServerState method execute.

@Nullable
@Override
public ExecutionResult execute(Executor executor, @NotNull ProgramRunner runner) throws ExecutionException {
    final ServerConnection connection = ServerConnectionManager.getInstance().getOrCreateConnection(myServer);
    final Project project = myEnvironment.getProject();
    RemoteServersView.getInstance(project).showServerConnection(connection);
    final DebugConnector<?, ?> debugConnector;
    if (DefaultDebugExecutor.getDebugExecutorInstance().equals(executor)) {
        debugConnector = myServer.getType().createDebugConnector();
    } else {
        debugConnector = null;
    }
    connection.deploy(new DeploymentTaskImpl(mySource, myConfiguration, project, debugConnector, myEnvironment), s -> RemoteServersView.getInstance(project).showDeployment(connection, (String) s));
    return null;
}
Also used : Project(com.intellij.openapi.project.Project) ServerConnection(com.intellij.remoteServer.runtime.ServerConnection) DeploymentTaskImpl(com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

Project (com.intellij.openapi.project.Project)1 DeploymentTaskImpl (com.intellij.remoteServer.impl.runtime.deployment.DeploymentTaskImpl)1 ServerConnection (com.intellij.remoteServer.runtime.ServerConnection)1 Nullable (org.jetbrains.annotations.Nullable)1