|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jenkinsci.plugins.darcs.DarcsCmd
public class DarcsCmd
Abstracts the Darcs command.
Nested Class Summary | |
---|---|
static class |
DarcsCmd.DarcsCmdException
Darcs command exception. |
Field Summary | |
---|---|
private static String |
CMD_CHANGES
`darcs changes` command. |
private static String |
CMD_GET
`darcs get` command. |
private static String |
CMD_PULL
`darcs pull` command. |
private String |
darcsExe
Name of the Darcs executable binary. |
private Map<String,String> |
envs
Environment variables. |
private Launcher |
launcher
Used to start a process. |
private static String |
OPT_ALL
|
private static String |
OPT_COUNT
|
private static String |
OPT_LAST
|
private static String |
OPT_REPO
|
private static String |
OPT_REPODIR
|
private static String |
OPT_SUMMARY
|
private static String |
OPT_VERBOSE
|
private static String |
OPT_XML_OUTPUT
|
private FilePath |
workingDir
|
Constructor Summary | |
---|---|
DarcsCmd(Launcher launcher,
Map<String,String> envs,
String darcsExe,
FilePath workingDir)
Creates a Darcs command object. |
Method Summary | |
---|---|
ByteArrayOutputStream |
allChanges(String repo)
|
ByteArrayOutputStream |
allSummarizedChanges(String repo)
|
int |
countChanges(String repo)
|
Launcher.ProcStarter |
createProc(ArgumentListBuilder args)
Creates process starter. |
void |
get(String repo,
String from)
Do a fresh checkout of a repository. |
private ByteArrayOutputStream |
getChanges(String repo,
boolean summarize)
|
private ByteArrayOutputStream |
getChanges(String repo,
boolean summarize,
int n)
|
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 |
Field Detail |
---|
private static final String CMD_CHANGES
private static final String CMD_PULL
private static final String CMD_GET
private static final String OPT_REPO
private static final String OPT_XML_OUTPUT
private static final String OPT_SUMMARY
private static final String OPT_LAST
private static final String OPT_REPODIR
private static final String OPT_COUNT
private static final String OPT_ALL
private static final String OPT_VERBOSE
private final Launcher launcher
private final String darcsExe
private final Map<String,String> envs
private final FilePath workingDir
Constructor Detail |
---|
public DarcsCmd(Launcher launcher, Map<String,String> envs, String darcsExe, FilePath workingDir)
launcher
- starts a processenvs
- environment variablesdarcsExe
- executable nameMethod Detail |
---|
public Launcher.ProcStarter createProc(ArgumentListBuilder args)
args
- builds argument list for command
public ByteArrayOutputStream lastSummarizedChanges(String repo, int n) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
public ByteArrayOutputStream allSummarizedChanges(String repo) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
public ByteArrayOutputStream allChanges(String repo) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
private ByteArrayOutputStream getChanges(String repo, boolean summarize) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
private ByteArrayOutputStream getChanges(String repo, boolean summarize, int n) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
public int countChanges(String repo) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
public void pull(String repo, String from) throws DarcsCmd.DarcsCmdException
DarcsCmd.DarcsCmdException
public void get(String repo, String from) throws DarcsCmd.DarcsCmdException
repo
- where to checkoutfrom
- from where to get the repository
DarcsCmd.DarcsCmdException
- if can't do checkout
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |