Class AssemblyFileUtils
java.lang.Object
org.apache.maven.plugins.assembly.utils.AssemblyFileUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAbsolutePath(File dir) This method exists becauseFile.isAbsolute()is not OS independent.static booleanisPropertyFile(File file) static booleanisPropertyFile(String sourceName) static StringmakePathRelativeTo(String path, File basedir) static StringnormalizeFileInfo(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo) static voidverifyTempDirectoryAvailability(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:
trueifFile#isAbsolute()or starts with a '/'
-