Class AssemblyFileUtils
java.lang.Object
org.apache.maven.plugins.assembly.utils.AssemblyFileUtils
-
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) static void
verifyTempDirectoryAvailability
(File tempDir)
-
Method Details
-
makePathRelativeTo
-
verifyTempDirectoryAvailability
-
normalizeFileInfo
public static String normalizeFileInfo(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 '/'
-