Class AssemblyFileUtils
java.lang.Object
org.apache.maven.plugins.assembly.utils.AssemblyFileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAbsolutePath
(File dir) This method exists becauseFile.isAbsolute()
is not OS independent.static boolean
isPropertyFile
(File file) static boolean
isPropertyFile
(String sourceName) static String
makePathRelativeTo
(String path, File basedir) static String
normalizeFileInfo
(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) private static String
normalizePath
(String path) static void
verifyTempDirectoryAvailability
(File tempDir)
-
Constructor Details
-
AssemblyFileUtils
private AssemblyFileUtils()
-
-
Method Details
-
makePathRelativeTo
-
verifyTempDirectoryAvailability
-
normalizePath
-
normalizeFileInfo
@Nonnull public static String normalizeFileInfo(@Nonnull org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) -
isPropertyFile
-
isPropertyFile
-
isAbsolutePath
This method exists becauseFile.isAbsolute()
is not OS independent. In addition to the check inFile.isAbsolute()
we will also test for a leading '/'.- Returns:
true
ifFile#isAbsolute()
or starts with a '/'
-