public abstract class AbstractJLinkMojo extends AbstractMojo
| Constructor and Description |
|---|
AbstractJLinkMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
convertSeparatedModulePathToPlatformSeparatedModulePath(String pluginModulePath)
This will convert a module path separated by either
: or ; into a string which uses the platform
depend path separator uniformly. |
protected void |
executeCommand(org.codehaus.plexus.util.cli.Commandline cmd,
File outputDirectory) |
protected File |
getArchiveFile(File basedir,
String finalName,
String classifier,
String archiveExt)
Returns the archive file to generate, based on an optional classifier.
|
protected String |
getCommaSeparatedList(Collection<String> modules)
Convert a list into a
|
protected String |
getJLinkExecutable() |
protected String |
getPlatformDependSeparateList(Collection<String> modulePaths)
Convert a list into a string which is separated by platform depend path separator.
|
protected MavenProject |
getProject() |
protected MavenSession |
getSession() |
protected Toolchain |
getToolchain() |
protected boolean |
hasClassifier(String classifier) |
getLog, getPluginContext, setLog, setPluginContextprotected String getJLinkExecutable() throws IOException
IOExceptionprotected void executeCommand(org.codehaus.plexus.util.cli.Commandline cmd,
File outputDirectory)
throws MojoExecutionException
MojoExecutionExceptionprotected Toolchain getToolchain()
protected MavenProject getProject()
protected MavenSession getSession()
protected File getArchiveFile(File basedir, String finalName, String classifier, String archiveExt)
basedir - the output directoryfinalName - the name of the ear fileclassifier - an optional classifierarchiveExt - The extension of the file.protected boolean hasClassifier(String classifier)
protected StringBuilder convertSeparatedModulePathToPlatformSeparatedModulePath(String pluginModulePath)
: or ; into a string which uses the platform
depend path separator uniformly.pluginModulePath - The module path.protected String getPlatformDependSeparateList(Collection<String> modulePaths)
modulePaths - The list of elements.File.pathSeparatorChar.protected String getCommaSeparatedList(Collection<String> modules)
modules - The list of modules.,.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.