public class HudsonClearToolLauncher extends Object implements ClearToolLauncher
Constructor and Description |
---|
HudsonClearToolLauncher(String executable,
String scmName,
hudson.model.TaskListener listener,
hudson.FilePath workspace,
hudson.Launcher launcher) |
Modifier and Type | Method and Description |
---|---|
String |
getCmdString(String[] cmd) |
hudson.Proc |
getLaunchedProc(String[] cmdWithExec,
String[] env,
InputStream inputStream,
OutputStream out,
hudson.FilePath path) |
hudson.Launcher |
getLauncher() |
hudson.model.TaskListener |
getListener()
Returns a task listener for a hudson job
|
hudson.FilePath |
getWorkspace()
Returns the workspace file path for a hudson job
|
boolean |
isUnix() |
boolean |
run(String[] cmd,
hudson.FilePath filePath)
Launches a cleartool command with arguments.
|
boolean |
run(String[] cmd,
InputStream inputStream,
OutputStream outputStream,
hudson.FilePath filePath)
Launches a cleartool command with arguments.
|
boolean |
run(String[] cmd,
InputStream inputStream,
OutputStream outputStream,
hudson.FilePath filePath,
boolean logCommand)
Launches a cleartool command with arguments.
|
public String getCmdString(String[] cmd)
getCmdString
in interface ClearToolLauncher
public hudson.Proc getLaunchedProc(String[] cmdWithExec, String[] env, InputStream inputStream, OutputStream out, hudson.FilePath path) throws IOException
IOException
public hudson.Launcher getLauncher()
getLauncher
in interface ClearToolLauncher
ClearToolLauncher.getLauncher()
public hudson.model.TaskListener getListener()
ClearToolLauncher
getListener
in interface ClearToolLauncher
public hudson.FilePath getWorkspace()
ClearToolLauncher
getWorkspace
in interface ClearToolLauncher
public boolean isUnix()
isUnix
in interface ClearToolLauncher
public boolean run(String[] cmd, hudson.FilePath filePath) throws IOException, InterruptedException
ClearToolLauncher
run
in interface ClearToolLauncher
cmd
- the command to launch using the clear tool executableIOException
InterruptedException
public boolean run(String[] cmd, InputStream inputStream, OutputStream outputStream, hudson.FilePath filePath) throws IOException, InterruptedException
ClearToolLauncher
run
in interface ClearToolLauncher
cmd
- the command to launch using the clear tool executableinputStream
- optional, if the command should be able to receive inputoutputStream
- optional, can be used to gather the output streamfilePath
- optional, the path where the command should be launchedIOException
InterruptedException
public boolean run(String[] cmd, InputStream inputStream, OutputStream outputStream, hudson.FilePath filePath, boolean logCommand) throws IOException, InterruptedException
ClearToolLauncher
run
in interface ClearToolLauncher
cmd
- the command to launch using the clear tool executableinputStream
- optional, if the command should be able to receive inputoutputStream
- optional, can be used to gather the output streamfilePath
- optional, the path where the command should be launchedlogCommand
- optional, log the command itselfIOException
InterruptedException
Copyright © 2004-2021. All Rights Reserved.