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(List<String> modules)
Convert a list into a
|
protected String |
getJLinkExecutable() |
protected String |
getPlatformDependSeparateList(List<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, setPluginContext
protected String getJLinkExecutable() throws IOException
IOException
protected void executeCommand(org.codehaus.plexus.util.cli.Commandline cmd, File outputDirectory) throws MojoExecutionException
MojoExecutionException
protected 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(List<String> modulePaths)
modulePaths
- The list of elements.File.pathSeparatorChar
.Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.