org.jenkinsci.plugins.darcs
Class DarcsCmd

java.lang.Object
  extended by org.jenkinsci.plugins.darcs.DarcsCmd

public class DarcsCmd
extends Object

Abstracts the Darcs command.

Author:
Sven Strittmatter

Nested Class Summary
static class DarcsCmd.DarcsCmdException
          Darcs command exception.
 
Constructor Summary
DarcsCmd(hudson.Launcher launcher, Map<String,String> envs, String darcsExe, hudson.FilePath workingDir)
          Creates a Darcs command object.
 
Method Summary
 ByteArrayOutputStream allChanges(String repo)
           
 ByteArrayOutputStream allSummarizedChanges(String repo)
           
 int countChanges(String repo)
           
 hudson.Launcher.ProcStarter createProc(hudson.util.ArgumentListBuilder args)
          Creates process starter.
 void get(String repo, String from)
          Do a fresh checkout of a repository.
 ByteArrayOutputStream lastSummarizedChanges(String repo, int n)
           
 void pull(String repo, String from)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DarcsCmd

public DarcsCmd(hudson.Launcher launcher,
                Map<String,String> envs,
                String darcsExe,
                hudson.FilePath workingDir)
Creates a Darcs command object.

Parameters:
launcher - starts a process
envs - environment variables
darcsExe - executable name
Method Detail

createProc

public hudson.Launcher.ProcStarter createProc(hudson.util.ArgumentListBuilder args)
Creates process starter.

Parameters:
args - builds argument list for command
Returns:
a process starter object

lastSummarizedChanges

public ByteArrayOutputStream lastSummarizedChanges(String repo,
                                                   int n)
                                            throws DarcsCmd.DarcsCmdException
Throws:
DarcsCmd.DarcsCmdException

allSummarizedChanges

public ByteArrayOutputStream allSummarizedChanges(String repo)
                                           throws DarcsCmd.DarcsCmdException
Throws:
DarcsCmd.DarcsCmdException

allChanges

public ByteArrayOutputStream allChanges(String repo)
                                 throws DarcsCmd.DarcsCmdException
Throws:
DarcsCmd.DarcsCmdException

countChanges

public int countChanges(String repo)
                 throws DarcsCmd.DarcsCmdException
Throws:
DarcsCmd.DarcsCmdException

pull

public void pull(String repo,
                 String from)
          throws DarcsCmd.DarcsCmdException
Throws:
DarcsCmd.DarcsCmdException

get

public void get(String repo,
                String from)
         throws DarcsCmd.DarcsCmdException
Do a fresh checkout of a repository.

Parameters:
repo - where to checkout
from - from where to get the repository
Throws:
DarcsCmd.DarcsCmdException - if can't do checkout


Copyright © 2004-2013 weltraumschaf.de. All Rights Reserved.