Ejemplo n.º 1
0
 /**
  * Resets all switches in the command. After calling this method, the command should have no
  * switches defined and should behave defaultly.
  */
 @Override
 public void resetCVSCommand() {
   setMessage(null);
   setRecursive(true);
   setForceCommit(false);
   setLogMessageFromFile(null);
   setNoModuleProgram(false);
   setToRevisionOrBranch(null);
 }
Ejemplo n.º 2
0
 /**
  * Takes the arguments and sets the command. To be mainly used for automatic settings (like
  * parsing the .cvsrc file).
  *
  * @return true if the option (switch) was recognized and set
  */
 @Override
 public boolean setCVSCommand(char opt, String optArg) {
   if (opt == 'm') {
     setMessage(optArg);
   } else if (opt == 'l') {
     setRecursive(false);
   } else if (opt == 'R') {
     setRecursive(true);
   } else if (opt == 'f') {
     setForceCommit(true);
   } else if (opt == 'F') {
     setLogMessageFromFile(optArg);
   } else if (opt == 'r') {
     setToRevisionOrBranch(optArg);
   } else if (opt == 'n') {
     setNoModuleProgram(true);
   } else {
     return false;
   }
   return true;
 }