hudson.plugins.fitnesse
Class FitnesseExecutor

java.lang.Object
  extended by hudson.plugins.fitnesse.FitnesseExecutor

public class FitnesseExecutor
extends Object

Author:
Tim Bacon

Constructor Summary
FitnesseExecutor(FitnesseBuilder builder)
           
 
Method Summary
 boolean execute(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, PrintStream logger, hudson.EnvVars environment)
           
 boolean fitnesseStarted(PrintStream log, hudson.plugins.fitnesse.StdConsole console, long timeout)
          Detect if fitnesse has started by monitoring the console.
 String getFitnessePageCmd()
           
 URL getFitnessePageCmdURL(hudson.model.AbstractBuild<?,?> build)
           
 byte[] getHttpBytes(PrintStream log, URL pageCmdTarget, hudson.plugins.fitnesse.Resettable timeout, int httpTimeout)
           
 ArrayList<String> getJavaCmd(hudson.FilePath workingDirectory, hudson.EnvVars envVars)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnesseExecutor

public FitnesseExecutor(FitnesseBuilder builder)
Method Detail

execute

public boolean execute(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       PrintStream logger,
                       hudson.EnvVars environment)
                throws InterruptedException
Throws:
InterruptedException

getJavaCmd

public ArrayList<String> getJavaCmd(hudson.FilePath workingDirectory,
                                    hudson.EnvVars envVars)

fitnesseStarted

public boolean fitnesseStarted(PrintStream log,
                               hudson.plugins.fitnesse.StdConsole console,
                               long timeout)
                        throws InterruptedException
Detect if fitnesse has started by monitoring the console. If fitnesse.jar is unpacking itself there will be an initial write to stderr followed by multiple writes to stdout, otherwise there should only be an initial short write to stdout (and any writes to stderr are probably exception messages.)

Returns:
true if fitnesse has started, false otherwise
Throws:
InterruptedException

getHttpBytes

public byte[] getHttpBytes(PrintStream log,
                           URL pageCmdTarget,
                           hudson.plugins.fitnesse.Resettable timeout,
                           int httpTimeout)

getFitnessePageCmdURL

public URL getFitnessePageCmdURL(hudson.model.AbstractBuild<?,?> build)
                          throws Exception
Throws:
Exception

getFitnessePageCmd

public String getFitnessePageCmd()


Copyright © 2004-2012. All Rights Reserved.