public final class AssemblyFormatUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
artifactInterpolator(Artifact artifact) |
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
artifactProjectInterpolator(MavenProject artifactProject) |
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
classifierRules(Artifact artifact) |
static String |
evaluateFileNameMapping(String expression,
Artifact artifact,
MavenProject mainProject,
Artifact moduleArtifact,
AssemblerConfigurationSource configSource,
org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectInterpolator,
org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator)
ORDER OF INTERPOLATION PRECEDENCE:
prefixed with "module.", if moduleProject != null
Artifact instance for module, if moduleArtifact != null
ArtifactHandler instance for module, if moduleArtifact != null
MavenProject instance for module
prefixed with "artifact."
Artifact instance
ArtifactHandler instance for artifact
MavenProject instance for artifact
prefixed with "pom." or "project."
MavenProject instance from current build
no prefix, using main project instance
MavenProject instance from current build
Support for special expressions, like ${dashClassifier?}
user-defined properties from the command line
properties from main project
system properties, from the MavenSession instance (to support IDEs)
environment variables.
|
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
finalNameInterpolator(String finalName) |
static String |
fixRelativeRefs(String src)
ORDER OF INTERPOLATION PRECEDENCE:
prefixed with "module.", if moduleProject != null
Artifact instance for module, if moduleArtifact != null
ArtifactHandler instance for module, if moduleArtifact != null
MavenProject instance for module
prefixed with "artifact."
Artifact instance
ArtifactHandler instance for artifact
MavenProject instance for artifact
prefixed with "pom." or "project."
MavenProject instance from current build
no prefix, using main project instance
MavenProject instance from current build
Support for special expressions, like ${dashClassifier?}
user-defined properties from the command line
properties from main project
system properties, from the MavenSession instance (to support IDEs)
environment variables.
|
static String |
getDistributionName(Assembly assembly,
AssemblerConfigurationSource configSource)
Get the full name of the distribution artifact
|
static String |
getOutputDirectory(String output,
MavenProject artifactProject,
String finalName,
AssemblerConfigurationSource configSource)
ORDER OF INTERPOLATION PRECEDENCE:
Support for special expressions, like ${finalName} (use the assembly plugin configuration not the build
config)
prefixed with "module." if moduleProject is non-null
MavenProject instance for module being assembled
prefixed with "artifact." if artifactProject is non-null
MavenProject instance for artifact
user-defined properties from the command line
prefixed with "pom." or "project.", or no prefix at all
MavenProject instance from current build
properties from main project
system properties, from the MavenSession instance (to support IDEs)
environment variables.
|
static String |
getOutputDirectory(String output,
String finalName,
AssemblerConfigurationSource configSource,
org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectIntrpolator,
org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator)
ORDER OF INTERPOLATION PRECEDENCE:
Support for special expressions, like ${finalName} (use the assembly plugin configuration not the build
config)
prefixed with "module." if moduleProject is non-null
MavenProject instance for module being assembled
prefixed with "artifact." if artifactProject is non-null
MavenProject instance for artifact
user-defined properties from the command line
prefixed with "pom." or "project.", or no prefix at all
MavenProject instance from current build
properties from main project
system properties, from the MavenSession instance (to support IDEs)
environment variables.
|
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
moduleArtifactInterpolator(Artifact moduleArtifact) |
static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator |
moduleProjectInterpolator(MavenProject moduleProject) |
static void |
warnForPlatformSpecifics(org.codehaus.plexus.logging.Logger logger,
String destDirectory) |
public static String getDistributionName(Assembly assembly, AssemblerConfigurationSource configSource)
assembly
- the assembly@Nonnull public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator finalNameInterpolator(String finalName)
@Nonnull public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectInterpolator(MavenProject moduleProject)
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleArtifactInterpolator(Artifact moduleArtifact)
@Nonnull public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator(MavenProject artifactProject)
@Nonnull public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactInterpolator(@Nonnull Artifact artifact)
@Nonnull public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator classifierRules(Artifact artifact)
public static String getOutputDirectory(String output, MavenProject artifactProject, String finalName, AssemblerConfigurationSource configSource) throws AssemblyFormattingException
AssemblyFormattingException
@Nonnull public static String fixRelativeRefs(@Nonnull String src)
public static String evaluateFileNameMapping(String expression, @Nonnull Artifact artifact, @Nullable MavenProject mainProject, @Nullable Artifact moduleArtifact, @Nonnull AssemblerConfigurationSource configSource, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectInterpolator, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator) throws AssemblyFormattingException
AssemblyFormattingException
public static String getOutputDirectory(String output, String finalName, AssemblerConfigurationSource configSource, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectIntrpolator, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator) throws AssemblyFormattingException
AssemblyFormattingException
public static void warnForPlatformSpecifics(org.codehaus.plexus.logging.Logger logger, String destDirectory)
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.