public final class TargetedCommandLine
extends java.lang.Object
TargetEnvironment
.
Exe-path, working-directory and other properties are initialized in a lazy way, that allows to create a command line before creating a target where it should be run.
TargetedCommandLineBuilder
Constructor and Description |
---|
TargetedCommandLine(TargetValue<java.lang.String> exePath,
TargetValue<java.lang.String> workingDirectory,
TargetValue<java.lang.String> inputFilePath,
java.nio.charset.Charset charset,
java.util.List<TargetValue<java.lang.String>> parameters,
java.util.Map<java.lang.String,TargetValue<java.lang.String>> environment) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
collectCommandsSynchronously() |
java.nio.charset.Charset |
getCharset() |
java.lang.String |
getCommandPresentation(TargetEnvironment target)
|
java.util.Map<java.lang.String,java.lang.String> |
getEnvironmentVariables() |
java.lang.String |
getInputFilePath() |
java.lang.String |
getWorkingDirectory() |
public TargetedCommandLine(TargetValue<java.lang.String> exePath, TargetValue<java.lang.String> workingDirectory, TargetValue<java.lang.String> inputFilePath, java.nio.charset.Charset charset, java.util.List<TargetValue<java.lang.String>> parameters, java.util.Map<java.lang.String,TargetValue<java.lang.String>> environment)
public java.lang.String getCommandPresentation(TargetEnvironment target) throws ExecutionException
ExecutionException
public java.util.List<java.lang.String> collectCommandsSynchronously() throws ExecutionException
ExecutionException
public java.lang.String getWorkingDirectory() throws ExecutionException
ExecutionException
public java.lang.String getInputFilePath() throws ExecutionException
ExecutionException
public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables() throws ExecutionException
ExecutionException
public java.nio.charset.Charset getCharset()