Package org.apache.maven.shared.utils.io
Class Java7Support
- java.lang.Object
-
- org.apache.maven.shared.utils.io.Java7Support
-
@Deprecated public class Java7Support extends java.lang.ObjectDeprecated.no longer needed, prefer to useFilesmethods directly.Java7 feature detection.- Author:
- Kristian Rosenvold
-
-
Constructor Summary
Constructors Constructor Description Java7Support()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.io.FilecreateSymbolicLink(java.io.File symlink, java.io.File target)Deprecated.static voiddelete(java.io.File file)Deprecated.Performs a nio delete.static booleanexists(java.io.File file)Deprecated.static booleanisAtLeastJava7()Deprecated.static booleanisJava7()Deprecated.static booleanisSymLink(java.io.File file)Deprecated.static java.io.FilereadSymbolicLink(java.io.File symlink)Deprecated.
-
-
-
Method Detail
-
isSymLink
public static boolean isSymLink(java.io.File file)
Deprecated.- Parameters:
file- the file to check for being a symbolic link- Returns:
- true if the file is a symlink false otherwise
-
readSymbolicLink
public static java.io.File readSymbolicLink(java.io.File symlink) throws java.io.IOExceptionDeprecated.- Parameters:
symlink- the sym link- Returns:
- the file
- Throws:
java.io.IOException- in case of error
-
exists
public static boolean exists(java.io.File file) throws java.io.IOExceptionDeprecated.- Parameters:
file- the file to check- Returns:
- true if exist false otherwise
- Throws:
java.io.IOException- in case of failure
-
createSymbolicLink
public static java.io.File createSymbolicLink(java.io.File symlink, java.io.File target) throws java.io.IOExceptionDeprecated.- Parameters:
symlink- the link nametarget- the target- Returns:
- the linked file
- Throws:
java.io.IOException- in case of an error
-
delete
public static void delete(java.io.File file) throws java.io.IOExceptionDeprecated.Performs a nio delete.- Parameters:
file- the file to delete- Throws:
java.io.IOException- in case of error
-
isJava7
public static boolean isJava7()
Deprecated.- Returns:
- true in case of Java 7
-
isAtLeastJava7
public static boolean isAtLeastJava7()
Deprecated.- Returns:
- true in case of Java7 or greater
-
-