public final class AssemblyFileUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isAbsolutePath(File dir)
This method exists because
File.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) |
public static void verifyTempDirectoryAvailability(File tempDir)
public static String normalizeFileInfo(org.codehaus.plexus.components.io.fileselectors.FileInfo fileInfo)
public static boolean isPropertyFile(String sourceName)
public static boolean isPropertyFile(File file)
public static boolean isAbsolutePath(File dir)
File.isAbsolute()
is not OS independent.
In addition to the check in File.isAbsolute()
we will also test for a leading '/'.true
if File#isAbsolute()
or starts with a '/'Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.