org.apache.maven.plugin.ContextEnabled
, org.apache.maven.plugin.Mojo
JLinkMojo
public abstract class AbstractJLinkMojo
extends org.apache.maven.plugin.AbstractMojo
Constructor | Description |
---|---|
AbstractJLinkMojo() |
Modifier and Type | Method | 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 org.apache.maven.project.MavenProject |
getProject() |
|
protected org.apache.maven.execution.MavenSession |
getSession() |
|
protected org.apache.maven.toolchain.Toolchain |
getToolchain() |
|
protected boolean |
hasClassifier(String classifier) |
protected String getJLinkExecutable() throws IOException
IOException
protected void executeCommand(org.codehaus.plexus.util.cli.Commandline cmd, File outputDirectory) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected org.apache.maven.toolchain.Toolchain getToolchain()
protected org.apache.maven.project.MavenProject getProject()
protected org.apache.maven.execution.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–2019 The Apache Software Foundation. All rights reserved.