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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract OptionsassembleOptions(List<Options> parsedOptions) protected PathgetCwd(BaseParser.LocalContext context) protected Pathprotected abstract InvokerRequestgetInvokerRequest(BaseParser.LocalContext context) getJvmArguments(Path rootDirectory) protected PathgetRootDirectory(BaseParser.LocalContext context) protected PathgetTopDirectory(BaseParser.LocalContext context) protected PathparseCliOptions(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:
parseInvocationin interfaceParser- Throws:
ParserExceptionIOException
-
getInvokerRequest
-
getCwd
- Throws:
ParserException
-
getInstallationDirectory
- Throws:
ParserException
-
getUserHomeDirectory
- Throws:
ParserException
-
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:
ParserExceptionIOException
-
parseCliOptions
protected abstract List<Options> parseCliOptions(BaseParser.LocalContext context) throws ParserException, IOException - Throws:
ParserExceptionIOException
-
assembleOptions
-
readCoreExtensionsDescriptor
protected List<CoreExtension> readCoreExtensionsDescriptor(BaseParser.LocalContext context) throws ParserException, IOException - Throws:
ParserExceptionIOException
-
readCoreExtensionsDescriptorFromFile
protected List<CoreExtension> readCoreExtensionsDescriptorFromFile(Path extensionsFile) throws ParserException, IOException - Throws:
ParserExceptionIOException
-
getJvmArguments
- Throws:
ParserException
-