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 MSVSSGET extends MSVSS { 32 33 37 Commandline buildCmdLine() { 38 Commandline commandLine = new Commandline(); 39 40 commandLine.setExecutable(getSSCommand()); 44 commandLine.createArgument().setValue(COMMAND_GET); 45 46 if (getVsspath() == null) { 47 throw new BuildException("vsspath attribute must be set!", getLocation()); 48 } 49 commandLine.createArgument().setValue(getVsspath()); 50 51 commandLine.createArgument().setValue(getLocalpath()); 53 commandLine.createArgument().setValue(getAutoresponse()); 55 commandLine.createArgument().setValue(getQuiet()); 57 commandLine.createArgument().setValue(getRecursive()); 59 commandLine.createArgument().setValue(getVersionDateLabel()); 61 commandLine.createArgument().setValue(getWritable()); 63 commandLine.createArgument().setValue(getLogin()); 65 commandLine.createArgument().setValue(getFileTimeStamp()); 67 commandLine.createArgument().setValue(getWritableFiles()); 69 70 return commandLine; 71 } 72 73 78 public void setLocalpath(Path localPath) { 79 super.setInternalLocalPath(localPath.toString()); 80 } 81 82 87 public final void setRecursive(boolean recursive) { 88 super.setInternalRecursive(recursive); 89 } 90 91 96 public final void setQuiet (boolean quiet) { 97 super.setInternalQuiet(quiet); 98 } 99 100 105 public final void setWritable(boolean writable) { 106 super.setInternalWritable(writable); 107 } 108 109 116 public void setVersion(String version) { 117 super.setInternalVersion(version); 118 } 119 120 127 public void setDate(String date) { 128 super.setInternalDate(date); 129 } 130 131 138 public void setLabel(String label) { 139 super.setInternalLabel(label); 140 } 141 142 147 public void setAutoresponse(String response) { 148 super.setInternalAutoResponse(response); 149 } 150 151 156 public void setFileTimeStamp(CurrentModUpdated timestamp) { 157 super.setInternalFileTimeStamp(timestamp); 158 } 159 160 169 public void setWritableFiles(WritableFiles files) { 170 super.setInternalWritableFiles(files); 171 } 172 } 173 | Popular Tags |