Package org.savantbuild.runtime
Class DefaultRuntimeConfigurationParser
java.lang.Object
org.savantbuild.runtime.DefaultRuntimeConfigurationParser
- All Implemented Interfaces:
RuntimeConfigurationParser
Default implementation that uses a simple brute force approach for now.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses the command-line arguments.
-
Constructor Details
-
DefaultRuntimeConfigurationParser
public DefaultRuntimeConfigurationParser()
-
-
Method Details
-
parse
Parses the command-line arguments. There are currently 4 fixed arguments:
--noColor = Disables the colorized output of Savant --debug = Enables debug output --version = Displays the version --help = Displays the help message --listTargets = Lists the build targets
If any other argument starts with
--then it is considered a switch. Switches can optionally have values using the equals sign like this:--switch=value
All other arguments are considered targets to execute.
This parser does care about ordering of the arguments at all.
- Specified by:
parsein interfaceRuntimeConfigurationParser- Parameters:
arguments- The CLI arguments.- Returns:
- The RuntimeConfiguration and never null.
-