Class AssemblyFormatUtils
- java.lang.Object
-
- org.apache.maven.plugins.assembly.utils.AssemblyFormatUtils
-
public final class AssemblyFormatUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAssemblyFormatUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatorartifactInterpolator(org.apache.maven.artifact.Artifact artifact)static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatorartifactProjectInterpolator(org.apache.maven.project.MavenProject artifactProject)static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatorclassifierRules(org.apache.maven.artifact.Artifact artifact)static java.lang.StringevaluateFileNameMapping(java.lang.String expression, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject mainProject, org.apache.maven.artifact.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.private static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatorexecutionPropertiesInterpolator(AssemblerConfigurationSource configSource)static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatorfinalNameInterpolator(java.lang.String finalName)static java.lang.StringfixRelativeRefs(java.lang.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 java.lang.StringgetDistributionName(Assembly assembly, AssemblerConfigurationSource configSource)Get the full name of the distribution artifactstatic java.lang.StringgetOutputDirectory(java.lang.String output, java.lang.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 java.lang.StringgetOutputDirectory(java.lang.String output, org.apache.maven.project.MavenProject artifactProject, java.lang.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.(package private) static booleanisUnixRootReference(java.lang.String destDirectory)(package private) static booleanisWindowsPath(java.lang.String destDirectory)private static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatormainProjectOnlyInterpolator(org.apache.maven.project.MavenProject mainProject)static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatormoduleArtifactInterpolator(org.apache.maven.artifact.Artifact moduleArtifact)static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolatormoduleProjectInterpolator(org.apache.maven.project.MavenProject moduleProject)static voidwarnForPlatformSpecifics(org.slf4j.Logger logger, java.lang.String destDirectory)
-
-
-
Method Detail
-
getDistributionName
public static java.lang.String getDistributionName(Assembly assembly, AssemblerConfigurationSource configSource)
Get the full name of the distribution artifact- Parameters:
assembly- the assembly- Returns:
- the distribution name
-
finalNameInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator finalNameInterpolator(java.lang.String finalName)
-
moduleProjectInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectInterpolator(org.apache.maven.project.MavenProject moduleProject)
-
moduleArtifactInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleArtifactInterpolator(org.apache.maven.artifact.Artifact moduleArtifact)
-
artifactProjectInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator(org.apache.maven.project.MavenProject artifactProject)
-
artifactInterpolator
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactInterpolator(org.apache.maven.artifact.Artifact artifact)
-
classifierRules
public static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator classifierRules(org.apache.maven.artifact.Artifact artifact)
-
getOutputDirectory
public static java.lang.String getOutputDirectory(java.lang.String output, org.apache.maven.project.MavenProject artifactProject, java.lang.String finalName, AssemblerConfigurationSource configSource) throws AssemblyFormattingExceptionORDER 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.
- Throws:
AssemblyFormattingException
-
executionPropertiesInterpolator
private static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator executionPropertiesInterpolator(AssemblerConfigurationSource configSource)
-
mainProjectOnlyInterpolator
private static org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator mainProjectOnlyInterpolator(org.apache.maven.project.MavenProject mainProject)
-
fixRelativeRefs
public static java.lang.String fixRelativeRefs(java.lang.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.
- prefixed with "module.", if moduleProject != null
-
evaluateFileNameMapping
public static java.lang.String evaluateFileNameMapping(java.lang.String expression, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject mainProject, org.apache.maven.artifact.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.
- prefixed with "module.", if moduleProject != null
-
getOutputDirectory
public static java.lang.String getOutputDirectory(java.lang.String output, java.lang.String finalName, AssemblerConfigurationSource configSource, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator moduleProjectIntrpolator, org.codehaus.plexus.interpolation.fixed.FixedStringSearchInterpolator artifactProjectInterpolator) throws AssemblyFormattingExceptionORDER 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.
- Throws:
AssemblyFormattingException
-
warnForPlatformSpecifics
public static void warnForPlatformSpecifics(org.slf4j.Logger logger, java.lang.String destDirectory)
-
isWindowsPath
static boolean isWindowsPath(java.lang.String destDirectory)
-
isUnixRootReference
static boolean isUnixRootReference(java.lang.String destDirectory)
-
-