Package org.apache.tools.ant.util
Class WindowsJunctionUtils
- java.lang.Object
-
- org.apache.tools.ant.util.WindowsJunctionUtils
-
public class WindowsJunctionUtils extends java.lang.ObjectContains methods related to Windows NTFS junctions.- Since:
- Ant 1.10.16
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsJunctionUtils()Empty constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsJunctionUtilsgetWindowsJunctionUtils()Method to retrieve The WindowsJunctionUtils, which is shared by all users of this method.booleanisJunction(java.io.File file)Checks whether a given file is a windows junction.booleanisJunction(java.nio.file.Path path)Checks whether a given path is a windows junction.booleanisJunctionSafe(java.io.File file)Checks whether a given file is a windows junction.booleanisJunctionSafe(java.nio.file.Path path)Checks whether a given path is a windows junction.
-
-
-
Method Detail
-
getWindowsJunctionUtils
public static WindowsJunctionUtils getWindowsJunctionUtils()
Method to retrieve The WindowsJunctionUtils, which is shared by all users of this method.- Returns:
- an instance of WindowsJunctionUtils.
-
isJunction
public boolean isJunction(java.io.File file) throws java.io.IOExceptionChecks whether a given file is a windows junction.- Returns:
- true if the file is a windows junction.
- Throws:
java.io.IOException- on error.
-
isJunctionSafe
public boolean isJunctionSafe(java.io.File file)
Checks whether a given file is a windows junction.- Returns:
- false if the given file is not a windows junction or an exception occured while trying to check the file - most likely because the file didn't exists.
-
isJunctionSafe
public boolean isJunctionSafe(java.nio.file.Path path)
Checks whether a given path is a windows junction.- Returns:
- false if the given path is not a junction or an exception occured while trying to check the path - most likely because the path didn't exists.
-
isJunction
public boolean isJunction(java.nio.file.Path path) throws java.io.IOExceptionChecks whether a given path is a windows junction.- Returns:
- true if the path is a windows junction.
- Throws:
java.io.IOException- on error.
-
-