Package org.apache.maven.cling.invoker
Class BaseParser
java.lang.Object
org.apache.maven.cling.invoker.BaseParser
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
EncryptParser
,MavenParser
,ShellParser
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Options
assembleOptions
(List<Options> parsedOptions) protected abstract Options
protected void
failIfFileNotExists
(BaseParser.LocalContext context, String fileName, String message) protected Path
getCwd
(BaseParser.LocalContext context) protected Path
protected abstract InvokerRequest
getInvokerRequest
(BaseParser.LocalContext context) protected Path
getRootDirectory
(BaseParser.LocalContext context) protected Path
getTopDirectory
(BaseParser.LocalContext context) protected Path
protected void
mayOverrideDirectorySystemProperty
(BaseParser.LocalContext context, String javaSystemPropertyKey, Path value) This method is needed to "align" values used later on for interpolations and path calculations.parseCliOptions
(BaseParser.LocalContext context) parseInvocation
(ParserRequest parserRequest) protected List<CoreExtension>
protected List<CoreExtension>
readCoreExtensionsDescriptorFromFile
(Path extensionsFile) protected void
validate
(BaseParser.LocalContext context)
-
Constructor Details
-
BaseParser
public BaseParser()
-
-
Method Details
-
parseInvocation
- Specified by:
parseInvocation
in interfaceParser
-
validate
-
failIfFileNotExists
protected void failIfFileNotExists(BaseParser.LocalContext context, String fileName, String message) -
emptyOptions
-
getInvokerRequest
-
getCwd
-
getInstallationDirectory
-
getUserHomeDirectory
-
mayOverrideDirectorySystemProperty
protected void mayOverrideDirectorySystemProperty(BaseParser.LocalContext context, String javaSystemPropertyKey, Path value) This method is needed to "align" values used later on for interpolations and path calculations. We enforce "canonical" paths, so IF key and canonical path value disagree, let override it. -
getTopDirectory
-
getRootDirectory
-
populateSystemProperties
-
populateUserProperties
-
parseCliOptions
-
assembleOptions
-
readCoreExtensionsDescriptor
-
readCoreExtensionsDescriptorFromFile
-