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 29 public class MSVSSCREATE extends MSVSS { 30 31 35 Commandline buildCmdLine() { 36 Commandline commandLine = new Commandline(); 37 38 if (getVsspath() == null) { 40 String msg = "vsspath attribute must be set!"; 41 throw new BuildException(msg, getLocation()); 42 } 43 44 commandLine.setExecutable(getSSCommand()); 49 commandLine.createArgument().setValue(COMMAND_CREATE); 50 51 commandLine.createArgument().setValue(getVsspath()); 53 commandLine.createArgument().setValue(getComment()); 55 commandLine.createArgument().setValue(getAutoresponse()); 57 commandLine.createArgument().setValue(getQuiet()); 59 commandLine.createArgument().setValue(getLogin()); 61 62 return commandLine; 63 } 64 65 70 public void setComment(String comment) { 71 super.setInternalComment(comment); 72 } 73 74 79 public final void setQuiet (boolean quiet) { 80 super.setInternalQuiet(quiet); 81 } 82 83 88 public void setAutoresponse(String response) { 89 super.setInternalAutoResponse(response); 90 } 91 } 92 | Popular Tags |