1 18 19 package org.apache.tools.ant.taskdefs.optional.vss; 20 21 import org.apache.tools.ant.BuildException; 22 import org.apache.tools.ant.types.Commandline; 23 import org.apache.tools.ant.types.Path; 24 25 30 public class MSVSSCHECKIN extends MSVSS { 31 32 36 protected Commandline buildCmdLine() { 37 Commandline commandLine = new Commandline(); 38 39 if (getVsspath() == null) { 41 String msg = "vsspath attribute must be set!"; 42 throw new BuildException(msg, getLocation()); 43 } 44 45 commandLine.setExecutable(getSSCommand()); 49 commandLine.createArgument().setValue(COMMAND_CHECKIN); 50 51 commandLine.createArgument().setValue(getVsspath()); 53 commandLine.createArgument().setValue(getLocalpath()); 55 commandLine.createArgument().setValue(getAutoresponse()); 57 commandLine.createArgument().setValue(getRecursive()); 59 commandLine.createArgument().setValue(getWritable()); 61 commandLine.createArgument().setValue(getLogin()); 63 commandLine.createArgument().setValue(getComment()); 65 66 return commandLine; 67 } 68 69 74 public void setLocalpath(Path localPath) { 75 super.setInternalLocalPath(localPath.toString()); 76 } 77 78 83 public void setRecursive(boolean recursive) { 84 super.setInternalRecursive(recursive); 85 } 86 87 93 public final void setWritable(boolean writable) { 94 super.setInternalWritable(writable); 95 } 96 97 102 public void setAutoresponse(String response) { 103 super.setInternalAutoResponse(response); 104 } 105 106 111 public void setComment(String comment) { 112 super.setInternalComment(comment); 113 } 114 } 115 | Popular Tags |