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 31 public class MSVSSCHECKOUT extends MSVSS { 32 33 37 protected Commandline buildCmdLine() { 38 Commandline commandLine = new Commandline(); 39 40 if (getVsspath() == null) { 42 String msg = "vsspath attribute must be set!"; 43 throw new BuildException(msg, getLocation()); 44 } 45 46 commandLine.setExecutable(getSSCommand()); 50 commandLine.createArgument().setValue(COMMAND_CHECKOUT); 51 52 commandLine.createArgument().setValue(getVsspath()); 54 commandLine.createArgument().setValue(getLocalpath()); 56 commandLine.createArgument().setValue(getAutoresponse()); 58 commandLine.createArgument().setValue(getRecursive()); 60 commandLine.createArgument().setValue(getVersionDateLabel()); 62 commandLine.createArgument().setValue(getLogin()); 64 commandLine.createArgument().setValue(getFileTimeStamp()); 66 commandLine.createArgument().setValue(getWritableFiles()); 68 commandLine.createArgument().setValue(getGetLocalCopy()); 70 71 return commandLine; 72 } 73 74 79 public void setLocalpath(Path localPath) { 80 super.setInternalLocalPath(localPath.toString()); 81 } 82 83 88 public void setRecursive(boolean recursive) { 89 super.setInternalRecursive(recursive); 90 } 91 92 99 public void setVersion(String version) { 100 super.setInternalVersion(version); 101 } 102 103 110 public void setDate(String date) { 111 super.setInternalDate(date); 112 } 113 114 121 public void setLabel(String label) { 122 super.setInternalLabel(label); 123 } 124 125 130 public void setAutoresponse(String response) { 131 super.setInternalAutoResponse(response); 132 } 133 134 139 public void setFileTimeStamp(CurrentModUpdated timestamp) { 140 super.setInternalFileTimeStamp(timestamp); 141 } 142 143 153 public void setWritableFiles(WritableFiles files) { 154 super.setInternalWritableFiles(files); 155 } 156 157 162 public void setGetLocalCopy(boolean get) { 163 super.setInternalGetLocalCopy(get); 164 } 165 } 166 | Popular Tags |