1 37 46 package net.sourceforge.cruisecontrol.sourcecontrols.accurev; 47 48 53 public class AccurevCommand { 54 public static final AccurevCommand UPDATE = new AccurevCommand("update"); 55 public static final AccurevCommand KEEP = new AccurevCommand("keep"); 56 public static final AccurevCommand SYNCTIME = new AccurevCommand("synctime"); 57 public static final AccurevCommand HELP = new AccurevCommand("help"); 58 public static final AccurevCommand SHOW = new AccurevCommand("show"); 59 public static final AccurevCommand HIST = new AccurevCommand("hist"); 60 private String commandName; 61 62 public AccurevCommand(String commandName) { 63 this.commandName = commandName; 64 } 65 66 public String toString() { 67 return commandName; 68 } 69 70 public AccurevCommandline create() { 71 return new AccurevCommandline(this); 72 } 73 74 public AccurevCommandline create(Runner runner) { 75 AccurevCommandline cmd = new AccurevCommandline(this); 76 if (runner != null) { 77 cmd.setRunner(runner); 78 } 79 return cmd; 80 } 81 } 82 | Popular Tags |