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 MSVSSLABEL extends MSVSS { 30 31 35 Commandline buildCmdLine() { 36 Commandline commandLine = new Commandline(); 37 38 if (getVsspath() == null) { 40 throw new BuildException("vsspath attribute must be set!", getLocation()); 41 } 42 43 String label = getLabel(); 44 if (label.equals("")) { 45 String msg = "label attribute must be set!"; 46 throw new BuildException(msg, getLocation()); 47 } 48 49 commandLine.setExecutable(getSSCommand()); 53 commandLine.createArgument().setValue(COMMAND_LABEL); 54 55 commandLine.createArgument().setValue(getVsspath()); 57 commandLine.createArgument().setValue(getComment()); 59 commandLine.createArgument().setValue(getAutoresponse()); 61 commandLine.createArgument().setValue(label); 63 commandLine.createArgument().setValue(getVersion()); 65 commandLine.createArgument().setValue(getLogin()); 67 68 return commandLine; 69 } 70 71 78 public void setLabel(String label) { 79 super.setInternalLabel(label); 80 } 81 82 87 public void setVersion(String version) { 88 super.setInternalVersion(version); 89 } 90 91 96 public void setComment(String comment) { 97 super.setInternalComment(comment); 98 } 99 100 105 public void setAutoresponse(String response) { 106 super.setInternalAutoResponse(response); 107 } 108 } 109 | Popular Tags |