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
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
createSymbolicLink
(File symlink, File target) Deprecated.static void
Deprecated.Performs a nio deletestatic boolean
Deprecated.static boolean
Deprecated.static boolean
isJava7()
Deprecated.static boolean
Deprecated.static File
readSymbolicLink
(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
@Nonnull public static File createSymbolicLink(@Nonnull File symlink, @Nonnull File target) throws IOException Deprecated.- Parameters:
symlink
- The link name.target
- 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.
-
Files
methods directly.