org.apache.maven.plugin.assembly.utils
Class AssemblyFormatUtils

java.lang.Object
  extended by org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils

public final class AssemblyFormatUtils
extends java.lang.Object

Version:
$Id: AssemblyFormatUtils.java 1073964 2011-02-23 22:05:06Z jdcasey $

Method Summary
static java.lang.String evaluateFileNameMapping(java.lang.String expression, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject artifactProject)
          Deprecated. Use evaluateFileNameMapping(String, Artifact, MavenProject, MavenProject, AssemblerConfigurationSource) instead.
static java.lang.String evaluateFileNameMapping(java.lang.String expression, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject moduleProject, org.apache.maven.artifact.Artifact moduleArtifact, org.apache.maven.project.MavenProject artifactProject, AssemblerConfigurationSource configSource)
          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.String evaluateFileNameMapping(java.lang.String expression, org.apache.maven.artifact.Artifact artifact, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject artifactProject, AssemblerConfigurationSource configSource)
           
static java.lang.String fixRelativeRefs(java.lang.String src)
           
static java.lang.String getDistributionName(Assembly assembly, AssemblerConfigurationSource configSource)
          Get the full name of the distribution artifact
static java.lang.String getOutputDirectory(java.lang.String output, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject moduleProject, 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.
static java.lang.String getOutputDirectory(java.lang.String output, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject artifactProject, java.lang.String finalName)
          Deprecated. Use getOutputDirectory(String, MavenProject, MavenProject, String, AssemblerConfigurationSource) instead.
static java.lang.String getOutputDirectory(java.lang.String output, org.apache.maven.project.MavenProject mainProject, org.apache.maven.project.MavenProject artifactProject, java.lang.String finalName, AssemblerConfigurationSource configSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDistributionName

public static java.lang.String getDistributionName(Assembly assembly,
                                                   AssemblerConfigurationSource configSource)
Get the full name of the distribution artifact

Parameters:
assembly -
Returns:
the distribution name

getOutputDirectory

@Deprecated
public static java.lang.String getOutputDirectory(java.lang.String output,
                                                             org.apache.maven.project.MavenProject mainProject,
                                                             org.apache.maven.project.MavenProject artifactProject,
                                                             java.lang.String finalName)
                                           throws AssemblyFormattingException
Deprecated. Use getOutputDirectory(String, MavenProject, MavenProject, String, AssemblerConfigurationSource) instead.

Throws:
AssemblyFormattingException

getOutputDirectory

public static java.lang.String getOutputDirectory(java.lang.String output,
                                                  org.apache.maven.project.MavenProject mainProject,
                                                  org.apache.maven.project.MavenProject artifactProject,
                                                  java.lang.String finalName,
                                                  AssemblerConfigurationSource configSource)
                                           throws AssemblyFormattingException
Throws:
AssemblyFormattingException

getOutputDirectory

public static java.lang.String getOutputDirectory(java.lang.String output,
                                                  org.apache.maven.project.MavenProject mainProject,
                                                  org.apache.maven.project.MavenProject moduleProject,
                                                  org.apache.maven.project.MavenProject artifactProject,
                                                  java.lang.String finalName,
                                                  AssemblerConfigurationSource configSource)
                                           throws AssemblyFormattingException
ORDER OF INTERPOLATION PRECEDENCE:
  1. Support for special expressions, like ${finalName} (use the assembly plugin configuration not the build config)
  2. prefixed with "module." if moduleProject is non-null
    1. MavenProject instance for module being assembled
  3. prefixed with "artifact." if artifactProject is non-null
    1. MavenProject instance for artifact
  4. user-defined properties from the command line
  5. prefixed with "pom." or "project.", or no prefix at all
    1. MavenProject instance from current build
  6. properties from main project
  7. system properties, from the MavenSession instance (to support IDEs)
  8. environment variables.

Throws:
AssemblyFormattingException

evaluateFileNameMapping

@Deprecated
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.project.MavenProject artifactProject)
                                                throws AssemblyFormattingException
Deprecated. Use evaluateFileNameMapping(String, Artifact, MavenProject, MavenProject, AssemblerConfigurationSource) instead.

Throws:
AssemblyFormattingException

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.project.MavenProject artifactProject,
                                                       AssemblerConfigurationSource configSource)
                                                throws AssemblyFormattingException
Throws:
AssemblyFormattingException

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.project.MavenProject moduleProject,
                                                       org.apache.maven.artifact.Artifact moduleArtifact,
                                                       org.apache.maven.project.MavenProject artifactProject,
                                                       AssemblerConfigurationSource configSource)
                                                throws AssemblyFormattingException
ORDER OF INTERPOLATION PRECEDENCE:
  1. prefixed with "module.", if moduleProject != null
    1. Artifact instance for module, if moduleArtifact != null
    2. ArtifactHandler instance for module, if moduleArtifact != null
    3. MavenProject instance for module
  2. prefixed with "artifact."
    1. Artifact instance
    2. ArtifactHandler instance for artifact
    3. MavenProject instance for artifact
  3. prefixed with "pom." or "project."
    1. MavenProject instance from current build
  4. no prefix, using main project instance
    1. MavenProject instance from current build
  5. Support for special expressions, like ${dashClassifier?}
  6. user-defined properties from the command line
  7. properties from main project
  8. system properties, from the MavenSession instance (to support IDEs)
  9. environment variables.

Throws:
AssemblyFormattingException

fixRelativeRefs

public static java.lang.String fixRelativeRefs(java.lang.String src)


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.