jenkins.plugins.shiningpanda.utils
Class LauncherUtil

java.lang.Object
  extended by jenkins.plugins.shiningpanda.utils.LauncherUtil

public class LauncherUtil
extends Object


Constructor Summary
LauncherUtil()
           
 
Method Summary
static boolean createSymlink(hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.FilePath target, hudson.FilePath link)
          Create a symbolic link.
static boolean launch(hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.FilePath pwd, hudson.EnvVars environment, hudson.util.ArgumentListBuilder args)
          Launch a process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LauncherUtil

public LauncherUtil()
Method Detail

launch

public static boolean launch(hudson.Launcher launcher,
                             hudson.model.TaskListener listener,
                             hudson.FilePath pwd,
                             hudson.EnvVars environment,
                             hudson.util.ArgumentListBuilder args)
                      throws InterruptedException
Launch a process.

Parameters:
launcher - The launcher
listener - The build listener
pwd - The working directory
environment - The environment
args - The arguments
Returns:
true if was successful, else false
Throws:
InterruptedException

createSymlink

public static boolean createSymlink(hudson.Launcher launcher,
                                    hudson.model.TaskListener listener,
                                    hudson.FilePath target,
                                    hudson.FilePath link)
                             throws InterruptedException,
                                    IOException
Create a symbolic link.

Parameters:
launcher - The launcher
listener - The listener
target - The target file
link - The link file
Returns:
true if successful, else false
Throws:
InterruptedException
IOException


Copyright © 2004-2012. All Rights Reserved.