Package org.apache.maven.shared.utils.io
Class Java7Support
java.lang.Object
org.apache.maven.shared.utils.io.Java7Support
Deprecated.
Java7 feature detection.
- Author:
- Kristian Rosenvold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilecreateSymbolicLink(File symlink, File target) Deprecated.static voidDeprecated.Performs a nio delete.static booleanDeprecated.static booleanDeprecated.static booleanisJava7()Deprecated.static booleanDeprecated.static FilereadSymbolicLink(File symlink) Deprecated.
-
Constructor Details
-
Java7Support
public Java7Support()Deprecated.
-
-
Method Details
-
isSymLink
Deprecated.- Parameters:
file- the file to check for being a symbolic link- Returns:
- true if the file is a symlink false otherwise
-
readSymbolicLink
Deprecated.- Parameters:
symlink- the sym link- Returns:
- the file
- Throws:
IOException- in case of error
-
exists
Deprecated.- Parameters:
file- the file to check- Returns:
- true if exist false otherwise
- Throws:
IOException- in case of failure
-
createSymbolicLink
Deprecated.- Parameters:
symlink- the link nametarget- the target- Returns:
- the linked file
- Throws:
IOException- in case of an error
-
delete
Deprecated.Performs a nio delete.- Parameters:
file- the file to delete- Throws:
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
-
Filesmethods directly.