Class AssemblyFileUtils

java.lang.Object
org.apache.maven.plugins.assembly.utils.AssemblyFileUtils

public final class AssemblyFileUtils extends Object
  • Method Details

    • makePathRelativeTo

      public static String makePathRelativeTo(String path, File basedir)
    • verifyTempDirectoryAvailability

      public static void verifyTempDirectoryAvailability(File tempDir)
    • normalizeFileInfo

      public static String normalizeFileInfo(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
    • isPropertyFile

      public static boolean isPropertyFile(String sourceName)
    • isPropertyFile

      public static boolean isPropertyFile(File file)
    • isAbsolutePath

      public static boolean isAbsolutePath(File dir)
      This method exists because File.isAbsolute() is not OS independent. In addition to the check in File.isAbsolute() we will also test for a leading '/'.
      Returns:
      true if File#isAbsolute() or starts with a '/'