提交 333da98f 编写于 作者: K Kohsuke Kawaguchi

Renamed, and they were missing @Extension.

上级 ef4a051e
......@@ -23,15 +23,18 @@
*/
package hudson.cli;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.model.Item;
import hudson.util.IOUtils;
import org.apache.xpath.operations.String;
import org.kohsuke.args4j.Argument;
/**
* @author Kohsuke Kawaguchi
*/
public class GetJobXmlCommand extends CLICommand {
@Extension
public class GetJobCommand extends CLICommand {
@Argument(metaVar="JOB",usage="Name of the job",required=true)
public AbstractProject<?,?> job;
......
......@@ -23,8 +23,10 @@
*/
package hudson.cli;
import hudson.Extension;
import hudson.model.AbstractProject;
import hudson.util.IOUtils;
import org.apache.xpath.operations.String;
import org.kohsuke.args4j.Argument;
import javax.xml.transform.stream.StreamSource;
......@@ -32,13 +34,14 @@ import javax.xml.transform.stream.StreamSource;
/**
* @author Kohsuke Kawaguchi
*/
public class UpdateJobXmlCommand extends CLICommand {
@Extension
public class UpdateJobCommand extends CLICommand {
@Argument(metaVar="JOB",usage="Name of the job",required=true)
public AbstractProject<?,?> job;
@Override
public String getShortDescription() {
return "Updates the job definition XML from stdin. The opposite of the get-job-xml command";
return "Updates the job definition XML from stdin. The opposite of the get-job command";
}
protected int run() throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册