public class ExternalSystemRunnableState extends UserDataHolderBase implements RunProfileState
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Integer> |
BUILD_PROCESS_DEBUGGER_PORT_KEY |
static Key<java.lang.Integer> |
DEBUGGER_DISPATCH_PORT_KEY |
Constructor and Description |
---|
ExternalSystemRunnableState(ExternalSystemTaskExecutionSettings settings,
Project project,
boolean debug,
ExternalSystemRunConfiguration configuration,
ExecutionEnvironment env) |
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
execute(Executor executor,
ProgramRunner<?> runner)
Starts the process.
|
int |
getDebugPort() |
java.net.ServerSocket |
getForkSocket() |
void |
setContentDescriptor(RunContentDescriptor contentDescriptor) |
XDebugProcess |
startDebugProcess(XDebugSession session,
ExecutionEnvironment env) |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
public static final Key<java.lang.Integer> DEBUGGER_DISPATCH_PORT_KEY
public static final Key<java.lang.Integer> BUILD_PROCESS_DEBUGGER_PORT_KEY
public ExternalSystemRunnableState(ExternalSystemTaskExecutionSettings settings, Project project, boolean debug, ExternalSystemRunConfiguration configuration, ExecutionEnvironment env)
public int getDebugPort()
public java.net.ServerSocket getForkSocket()
public ExecutionResult execute(Executor executor, ProgramRunner<?> runner) throws ExecutionException
RunProfileState
execute
in interface RunProfileState
executor
- the executor used to start up the process.runner
- the program runner used to start up the process.DefaultExecutionResult
), containing a process handler
and a console attached to it.ExecutionException
- if the execution has failed.public void setContentDescriptor(RunContentDescriptor contentDescriptor)
public XDebugProcess startDebugProcess(XDebugSession session, ExecutionEnvironment env)