public class InstallDirSwitch extends AbstractCommandLineSwitch implements CommandLineSwitch
[--installdir <install-directory>]| Modifier and Type | Field and Description |
|---|---|
static String |
INSTALL_DIR_SWITCH
Switch for specifying the install directory.
|
| Constructor and Description |
|---|
InstallDirSwitch()
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumeSwitch(String commandLineSwitch,
String[] followUpArgs)
Consumes the switch.
|
String |
getHelpText()
Gets a help text for this switch.
|
String |
getInstallDir()
Gets the provided application installation directory, if this switch was consumed, else null.
|
int |
getNumFollowUpArgs()
Gets the number of follow-up args required for this switch.
|
checkConsumeSwitchArgs, supportsSwitchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsSwitchpublic static final String INSTALL_DIR_SWITCH
public int getNumFollowUpArgs()
getNumFollowUpArgs in interface CommandLineSwitchpublic void consumeSwitch(String commandLineSwitch, String[] followUpArgs)
consumeSwitch in interface CommandLineSwitchcommandLineSwitch - the command line switchfollowUpArgs - the required follow-up args.public String getHelpText()
getHelpText in interface CommandLineSwitchpublic String getInstallDir()
Copyright © 2012–2019 Drombler. All rights reserved.