Class UnpackPluginMojo.RelocatingFileMapper

java.lang.Object
de.iip_ecosphere.platform.tools.maven.dependencies.UnpackPluginMojo.RelocatingFileMapper
All Implemented Interfaces:
org.codehaus.plexus.components.io.filemappers.FileMapper
Enclosing class:
UnpackPluginMojo

private class UnpackPluginMojo.RelocatingFileMapper extends Object implements org.codehaus.plexus.components.io.filemappers.FileMapper
Used for relocating classpath files, i.e., to rename them with their plugin short (artifactId) name.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • RelocatingFileMapper

      private RelocatingFileMapper(UnpackPluginMojo.PluginItem item, String targetName, String pathSuffix, boolean collectIfNotRelocate)
      Creates a relocating file mapper.
      Parameters:
      item - the originating plugin item
      targetName - the target name to map to
      pathSuffix - optional path suffix for moving the target directory; underlying Maven does not seem to consider a changed target path in here
      collectIfNotRelocate - collect the file names if we are not relocating
  • Method Details

    • getMappedFileName

      public String getMappedFileName(String pName)
      Specified by:
      getMappedFileName in interface org.codehaus.plexus.components.io.filemappers.FileMapper