Class CLICommand<R>
- java.lang.Object
-
- jenkins.plugin.android.emulator.sdk.cli.CLICommand<R>
-
public class CLICommand<R> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CLICommand.OutputParser<R>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArgumentListBuilder
arguments()
R
execute()
R
execute(TaskListener output)
Proc
executeAsync(TaskListener output)
CLICommand<R>
withEnv(EnvVars env)
CLICommand<R>
withEnv(String key, String value)
-
-
-
Method Detail
-
arguments
public ArgumentListBuilder arguments()
-
withEnv
public CLICommand<R> withEnv(String key, String value)
-
withEnv
public CLICommand<R> withEnv(EnvVars env)
-
execute
public R execute() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
execute
public R execute(@Nonnull TaskListener output) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
executeAsync
public Proc executeAsync(@Nullable TaskListener output) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-