org.apache.maven.shared.utils.io
Class Java7Support
java.lang.Object
org.apache.maven.shared.utils.io.Java7Support
public class Java7Support
- extends Object
Java7 feature detection
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Java7Support
public Java7Support()
isSymLink
public static boolean isSymLink(@Nonnull
File file)
readSymbolicLink
@Nonnull
public static File readSymbolicLink(@Nonnull
File symlink)
throws IOException
- Throws:
IOException
exists
public static boolean exists(@Nonnull
File file)
throws IOException
- Throws:
IOException
createSymbolicLink
@Nonnull
public static File createSymbolicLink(@Nonnull
File symlink,
@Nonnull
File target)
throws IOException
- Throws:
IOException
delete
public static void delete(File file)
throws IOException
- Performs a nio delete
- Parameters:
file
- the file to delete
- Throws:
IOException
isJava7
public static boolean isJava7()
isAtLeastJava7
public static boolean isAtLeastJava7()
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.