Class Java7Support

java.lang.Object
org.apache.maven.shared.utils.io.Java7Support

@Deprecated public class Java7Support extends Object
Deprecated.
no longer needed, prefer to use Files methods directly.
Java7 feature detection.
Author:
Kristian Rosenvold
  • Constructor Details

    • Java7Support

      public Java7Support()
      Deprecated.
  • Method Details

    • isSymLink

      public static boolean isSymLink(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 File readSymbolicLink(File symlink) throws IOException
      Deprecated.
      Parameters:
      symlink - the sym link
      Returns:
      the file
      Throws:
      IOException - in case of error
    • exists

      public static boolean exists(File file) throws IOException
      Deprecated.
      Parameters:
      file - the file to check
      Returns:
      true if exist false otherwise
      Throws:
      IOException - in case of failure
    • createSymbolicLink

      public static File createSymbolicLink(File symlink, 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

      public static void delete(File file) throws IOException
      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