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 24 30 public class MSVSSCP 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_CP); 50 51 commandLine.createArgument().setValue(getVsspath()); 53 commandLine.createArgument().setValue(getAutoresponse()); 55 commandLine.createArgument().setValue(getLogin()); 57 58 return commandLine; 59 } 60 61 66 public void setAutoresponse(String response) { 67 super.setInternalAutoResponse(response); 68 } 69 } 70 | Popular Tags |