|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.cli.CLICommand
hudson.cli.CopyJobCommand
@Extension public class CopyJobCommand
Copies a job from CLI.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary | |
---|---|
String |
dst
|
TopLevelItem |
src
|
Fields inherited from class hudson.cli.CLICommand |
---|
channel, locale, stderr, stdin, stdout, TRANSPORT_AUTHENTICATION |
Constructor Summary | |
---|---|
CopyJobCommand()
|
Method Summary | |
---|---|
String |
getShortDescription()
Gets the quick summary of what this command does. |
protected int |
run()
Executes the command, and return the exit code. |
Methods inherited from class hudson.cli.CLICommand |
---|
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCurrent, getName, getTransportAuthentication, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, setTransportAuth, shouldPerformAuthentication |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public TopLevelItem src
public String dst
Constructor Detail |
---|
public CopyJobCommand()
Method Detail |
---|
public String getShortDescription()
CLICommand
getShortDescription
in class CLICommand
protected int run() throws Exception
CLICommand
This is an internal contract between CLICommand
and its subtype.
To execute CLI method from outside, use CLICommand.main(List, Locale, InputStream, PrintStream, PrintStream)
run
in class CLICommand
AbortException
- If the processing should be aborted. Hudson will report the error message
without stack trace, and then exits this command.
Exception
- All the other exceptions cause the stack trace to be dumped, and then
the command exits with an error code.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |