1 16 17 package org.apache.commons.launcher; 18 19 import java.io.File ; 20 import java.util.ArrayList ; 21 import java.util.HashMap ; 22 23 30 public class LaunchCommand { 31 32 34 37 private boolean appendOutput = false; 38 39 42 private String classpath = null; 43 44 47 private boolean debug = false; 48 49 52 private boolean displayMinimizedWindow = false; 53 54 57 private boolean disposeMinimizedWindow = true; 58 59 62 private boolean failOnError = true; 63 64 67 private String mainClassName = null; 68 69 72 private File minimizedWindowIcon = null; 73 74 77 private String minimizedWindowTitle = null; 78 79 82 private File outputFile = null; 83 84 87 private boolean print = false; 88 89 92 private boolean requireTools = false; 93 94 97 private boolean redirect = false; 98 99 102 private ArrayList args = null; 103 104 107 private ArrayList jvmArgs = null; 108 109 112 private HashMap sysProperties = null; 113 114 117 private boolean useSystemIn = true; 118 119 122 private boolean waitForChild = true; 123 124 126 131 public String getClassname() { 132 133 return mainClassName; 134 135 } 136 137 142 public String getClasspath() { 143 144 return classpath; 145 146 } 147 148 153 public boolean getDebug() { 154 155 return debug; 156 157 } 158 159 164 public boolean getDisplayminimizedwindow() { 165 166 return displayMinimizedWindow; 167 168 } 169 170 175 public boolean getDisposeminimizedwindow() { 176 177 return disposeMinimizedWindow; 178 179 } 180 181 186 public boolean getFailonerror() { 187 188 return failOnError; 189 190 } 191 192 199 public String getMinimizedwindowtitle() { 200 201 return minimizedWindowTitle; 202 203 } 204 205 212 public File getMinimizedwindowicon() { 213 214 return minimizedWindowIcon; 215 216 } 217 218 224 public File getOutput() { 225 226 return outputFile; 227 228 } 229 230 235 public boolean getAppendoutput() { 236 237 return appendOutput; 238 239 } 240 241 246 public boolean getRedirectoutput() { 247 248 return redirect; 249 250 } 251 252 257 public ArrayList getArgs() { 258 259 return args; 260 261 } 262 263 268 public ArrayList getJvmargs() { 269 270 return jvmArgs; 271 272 } 273 274 279 public boolean getPrint() { 280 281 return print; 282 283 } 284 285 290 public boolean getRequiretools() { 291 292 return requireTools; 293 294 } 295 296 301 public HashMap getSysproperties() { 302 303 return sysProperties; 304 305 } 306 307 312 public boolean getUsesystemin() { 313 314 return useSystemIn; 315 316 } 317 318 323 public boolean getWaitforchild() { 324 325 return waitForChild; 326 327 } 328 329 334 public void setPrint(boolean print) { 335 336 this.print = print; 337 338 } 339 340 345 public void setRequiretools(boolean requireTools) { 346 347 this.requireTools = requireTools; 348 349 } 350 351 360 public void setUsesystemin(boolean useSystemIn) { 361 362 this.useSystemIn = useSystemIn; 363 364 } 365 366 376 public void setWaitforchild(boolean waitForChild) { 377 378 this.waitForChild = waitForChild; 379 380 } 381 382 387 public void setClassname(String mainClassName) { 388 389 this.mainClassName = mainClassName; 390 391 } 392 393 398 public void setClasspath(String classpath) { 399 400 this.classpath = classpath; 401 402 } 403 404 409 public void setDebug(boolean debug) { 410 411 this.debug = debug; 412 413 } 414 415 426 public void setDisplayminimizedwindow(boolean displayMinimizedWindow) { 427 428 this.displayMinimizedWindow = displayMinimizedWindow; 429 430 } 431 432 448 public void setDisposeminimizedwindow(boolean disposeMinimizedWindow) { 449 450 this.disposeMinimizedWindow = disposeMinimizedWindow; 451 452 } 453 454 459 public void setFailonerror(boolean failOnError) { 460 461 this.failOnError = failOnError; 462 463 } 464 465 473 public void setMinimizedwindowtitle(String minimizedWindowTitle) { 474 475 this.minimizedWindowTitle = minimizedWindowTitle; 476 477 } 478 479 487 public void setMinimizedwindowicon(File minimizedWindowIcon) { 488 489 this.minimizedWindowIcon = minimizedWindowIcon; 490 491 } 492 493 500 public void setOutput(File outputFile) { 501 502 this.outputFile = outputFile; 503 504 } 505 506 514 public void setAppendoutput(boolean appendOutput) { 515 516 this.appendOutput = appendOutput; 517 518 } 519 520 525 public void setArgs(ArrayList args) { 526 527 this.args = args; 528 529 } 530 531 536 public void setJvmargs(ArrayList jvmArgs) { 537 538 this.jvmArgs = jvmArgs; 539 540 } 541 542 547 public void setSysproperties(HashMap sysProperties) { 548 549 this.sysProperties = sysProperties; 550 551 } 552 553 561 public void setRedirectoutput(boolean redirect) { 562 563 this.redirect = redirect; 564 565 } 566 567 } 568 | Popular Tags |