Class Functions
- java.lang.Object
-
- org.jenkinsci.plugins.radargun.util.Functions
-
public class Functions extends Object
- Author:
- vjuranek
-
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Launcher.ProcStarter
buildProcStarter(RgBuild rgBuild, String[] cmdLine, FileOutputStream logStream)
static String[]
buildRemoteCmd(RgBuild rgBuild, String nodeHostname, String[] localCmd)
static void
checkDeprecatedConfigs(NodeList nodes, ConsoleLogger console)
static String
convertWsToCanonicalPath(FilePath workspace)
static FilePath
getRemoteWorkspace(RgBuild rgBuild)
static RadarGunInstallation
getRgInstallation(RadarGunInstance radarGunInstance)
static boolean
isNullOrEmpty(String str)
static void
makeExecutable(String filePath)
static String[]
userCmdsToArray(List<String> userCmds, char cmdSep, boolean sepCharBefore)
-
-
-
Method Detail
-
makeExecutable
public static void makeExecutable(String filePath)
-
checkDeprecatedConfigs
public static void checkDeprecatedConfigs(NodeList nodes, ConsoleLogger console)
-
userCmdsToArray
public static String[] userCmdsToArray(List<String> userCmds, char cmdSep, boolean sepCharBefore)
-
buildProcStarter
public static Launcher.ProcStarter buildProcStarter(RgBuild rgBuild, String[] cmdLine, FileOutputStream logStream) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
getRemoteWorkspace
public static FilePath getRemoteWorkspace(RgBuild rgBuild) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
buildRemoteCmd
public static String[] buildRemoteCmd(RgBuild rgBuild, String nodeHostname, String[] localCmd)
-
isNullOrEmpty
public static boolean isNullOrEmpty(String str)
-
getRgInstallation
public static RadarGunInstallation getRgInstallation(RadarGunInstance radarGunInstance)
-
-