|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.mercurial.HgExe
public class HgExe
Encapsulates the invocation of "hg".
This reduces the amount of code in the main logic. TODO: perhaps a subtype 'Repository' with a repository location field would be good.
| Field Summary | |
|---|---|
hudson.Launcher |
launcher
|
hudson.model.TaskListener |
listener
|
hudson.model.Node |
node
|
| Constructor Summary | |
|---|---|
HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
hudson.EnvVars env)
|
|
HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.Node node,
hudson.model.TaskListener listener,
hudson.EnvVars env)
|
|
| Method Summary | |
|---|---|
hudson.Launcher.ProcStarter |
bundle(Collection<String> bases,
String file)
|
hudson.Launcher.ProcStarter |
bundleAll(String file)
|
hudson.Launcher.ProcStarter |
cleanAll()
|
hudson.Launcher.ProcStarter |
clone(String... args)
|
String |
config(hudson.FilePath repository,
String name)
Gets the current value of a specified config item. |
Set<String> |
heads(hudson.FilePath repo,
boolean useTimeout)
Obtains the heads of the repository. |
hudson.Launcher.ProcStarter |
init(hudson.FilePath path)
|
String |
popen(hudson.FilePath repository,
hudson.model.TaskListener listener,
boolean useTimeout,
hudson.util.ArgumentListBuilder args)
Runs the command and captures the output. |
hudson.Launcher.ProcStarter |
pull()
|
hudson.Launcher.ProcStarter |
run(hudson.util.ArgumentListBuilder args)
|
hudson.Launcher.ProcStarter |
run(String... args)
Runs arbitrary command. |
String |
tip(hudson.FilePath repository)
Gets the revision ID of the tip of the workspace. |
List<String> |
toArgList()
|
hudson.Launcher.ProcStarter |
unbundle(String bundleFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final hudson.Launcher launcher
public final hudson.model.Node node
public final hudson.model.TaskListener listener
| Constructor Detail |
|---|
public HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.AbstractBuild build,
hudson.model.TaskListener listener,
hudson.EnvVars env)
throws IOException,
InterruptedException
IOException
InterruptedException
public HgExe(MercurialSCM scm,
hudson.Launcher launcher,
hudson.model.Node node,
hudson.model.TaskListener listener,
hudson.EnvVars env)
throws IOException,
InterruptedException
IOException
InterruptedException| Method Detail |
|---|
public hudson.Launcher.ProcStarter pull()
public hudson.Launcher.ProcStarter clone(String... args)
public hudson.Launcher.ProcStarter bundleAll(String file)
public hudson.Launcher.ProcStarter bundle(Collection<String> bases,
String file)
public hudson.Launcher.ProcStarter init(hudson.FilePath path)
public hudson.Launcher.ProcStarter unbundle(String bundleFile)
public hudson.Launcher.ProcStarter cleanAll()
public hudson.Launcher.ProcStarter run(String... args)
public hudson.Launcher.ProcStarter run(hudson.util.ArgumentListBuilder args)
public Set<String> heads(hudson.FilePath repo,
boolean useTimeout)
throws IOException,
InterruptedException
IOException
InterruptedException
@CheckForNull
public String tip(hudson.FilePath repository)
throws IOException,
InterruptedException
IOException
InterruptedException
public String config(hudson.FilePath repository,
String name)
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic List<String> toArgList()
public String popen(hudson.FilePath repository,
hudson.model.TaskListener listener,
boolean useTimeout,
hudson.util.ArgumentListBuilder args)
throws IOException,
InterruptedException
IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||