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
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Options
assembleOptions
(List<Options> parsedOptions) protected Path
getCwd
(BaseParser.LocalContext context) protected Path
protected abstract InvokerRequest
getInvokerRequest
(BaseParser.LocalContext context) getJvmArguments
(Path rootDirectory) 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)
-
Constructor Details
-
BaseParser
public BaseParser()
-
-
Method Details
-
parseInvocation
public InvokerRequest parseInvocation(ParserRequest parserRequest) throws ParserException, IOException - Specified by:
parseInvocation
in interfaceParser
- Throws:
ParserException
IOException
-
getInvokerRequest
-
getCwd
- Throws:
ParserException
-
getInstallationDirectory
- Throws:
ParserException
-
getUserHomeDirectory
- Throws:
ParserException
-
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
- Throws:
ParserException
-
getRootDirectory
- Throws:
ParserException
-
populateSystemProperties
protected Map<String,String> populateSystemProperties(BaseParser.LocalContext context) throws ParserException - Throws:
ParserException
-
populateUserProperties
protected Map<String,String> populateUserProperties(BaseParser.LocalContext context) throws ParserException, IOException - Throws:
ParserException
IOException
-
parseCliOptions
protected abstract List<Options> parseCliOptions(BaseParser.LocalContext context) throws ParserException, IOException - Throws:
ParserException
IOException
-
assembleOptions
-
readCoreExtensionsDescriptor
protected List<CoreExtension> readCoreExtensionsDescriptor(BaseParser.LocalContext context) throws ParserException, IOException - Throws:
ParserException
IOException
-
readCoreExtensionsDescriptorFromFile
protected List<CoreExtension> readCoreExtensionsDescriptorFromFile(Path extensionsFile) throws ParserException, IOException - Throws:
ParserException
IOException
-
getJvmArguments
- Throws:
ParserException
-