hudson.plugins.buckminster.command
Class CommandLineBuilder

java.lang.Object
  extended by hudson.plugins.buckminster.command.CommandLineBuilder

public class CommandLineBuilder
extends Object

Creates the commandline to invoke to process and writes a textfile containing the buckminster commands to a file commands.txt in the workspace

Author:
Johannes Utzig

Constructor Summary
CommandLineBuilder(BuckminsterInstallation installation, String commands, String logLevel, String additionalParams, String userWorkspace, String userTemp, String userOutput, String userCommandFile, String propertyFile, String equinoxLauncherArgs)
           
 
Method Summary
 CommandLineBuilder additionalParams(String additionalParams)
           
 List<String> buildCommands(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, hudson.Launcher launcher)
          fills an arraylist with all program arguments for buckminster
 CommandLineBuilder commands(String commands)
           
static List<String> createDirectorScript(BuckminsterInstallable installable, hudson.FilePath toolDir, hudson.model.Node node, hudson.model.TaskListener log, Set<String> repositories, Set<String> featuresToInstall)
           
static List<String> createDirectorScript(BuckminsterInstallable installable, hudson.FilePath toolDir, hudson.model.Node node, hudson.model.TaskListener log, Set<String> repositories, Set<String> featuresToInstall, Set<String> featuresToUninstall)
           
 CommandLineBuilder equinoxLauncherArgs(String equinoxLauncherArgs)
           
static CommandLineBuilder forInstallation(BuckminsterInstallation installation)
           
 String getAdditionalParams()
           
 String getCommands()
           
 String getEquinoxLauncherArgs()
           
 BuckminsterInstallation getInstallation()
           
 String getLogLevel()
           
 String getPropertyFile()
           
 CommandLineBuilder loglevel(String loglevel)
           
 CommandLineBuilder propertyFile(String propertyFile)
           
 CommandLineBuilder userCommandFile(String userCommandFile)
           
 CommandLineBuilder userOutput(String userOutput)
           
 CommandLineBuilder userTemp(String userTemp)
           
 CommandLineBuilder userWorkspace(String userWorkspace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineBuilder

public CommandLineBuilder(BuckminsterInstallation installation,
                          String commands,
                          String logLevel,
                          String additionalParams,
                          String userWorkspace,
                          String userTemp,
                          String userOutput,
                          String userCommandFile,
                          String propertyFile,
                          String equinoxLauncherArgs)
Method Detail

forInstallation

public static CommandLineBuilder forInstallation(BuckminsterInstallation installation)

commands

public CommandLineBuilder commands(String commands)

loglevel

public CommandLineBuilder loglevel(String loglevel)

additionalParams

public CommandLineBuilder additionalParams(String additionalParams)

equinoxLauncherArgs

public CommandLineBuilder equinoxLauncherArgs(String equinoxLauncherArgs)

userWorkspace

public CommandLineBuilder userWorkspace(String userWorkspace)

userTemp

public CommandLineBuilder userTemp(String userTemp)

userOutput

public CommandLineBuilder userOutput(String userOutput)

userCommandFile

public CommandLineBuilder userCommandFile(String userCommandFile)

propertyFile

public CommandLineBuilder propertyFile(String propertyFile)

buildCommands

public List<String> buildCommands(hudson.model.AbstractBuild<?,?> build,
                                  hudson.model.BuildListener listener,
                                  hudson.Launcher launcher)
                           throws MalformedURLException,
                                  IOException,
                                  InterruptedException
fills an arraylist with all program arguments for buckminster

Parameters:
build -
launcher -
Returns:
the list containing the actual invocation and all parameters
Throws:
MalformedURLException
IOException
InterruptedException

getInstallation

public BuckminsterInstallation getInstallation()

getCommands

public String getCommands()

getLogLevel

public String getLogLevel()

getAdditionalParams

public String getAdditionalParams()

getEquinoxLauncherArgs

public String getEquinoxLauncherArgs()

getPropertyFile

public String getPropertyFile()

createDirectorScript

public static List<String> createDirectorScript(BuckminsterInstallable installable,
                                                hudson.FilePath toolDir,
                                                hudson.model.Node node,
                                                hudson.model.TaskListener log,
                                                Set<String> repositories,
                                                Set<String> featuresToInstall)
                                         throws IOException,
                                                InterruptedException
Throws:
IOException
InterruptedException

createDirectorScript

public static List<String> createDirectorScript(BuckminsterInstallable installable,
                                                hudson.FilePath toolDir,
                                                hudson.model.Node node,
                                                hudson.model.TaskListener log,
                                                Set<String> repositories,
                                                Set<String> featuresToInstall,
                                                Set<String> featuresToUninstall)
                                         throws IOException,
                                                InterruptedException
Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.