Class UpdateJDBCDriversDirectory

java.lang.Object
com.iizix.jdbc.UpdateJDBCDriversDirectory

public final class UpdateJDBCDriversDirectory extends Object
Helper that can be used from command line to copy the JDBC drivers directory to a destination directory. The destination directory must exist, and only modified files, new file are copied. Other files in the destination directory are not removed nor touched.
Author:
Christopher Mindus
  • Method Details

    • main

      public static void main(String[] args)
      Command line to copy the JDBC drivers directory to a destination directory. The destination directory must exist, and only modified files, new file are copied. Other files in the destination directory are not removed nor touched.

      A file is copied when its length or its content differs from the destination's; its last modified date alone never makes a copy.

      Exit values are:

      • 0 = success,
      • 1 = failed,
      • 9 = syntax error.
      Parameters:
      args - The arguments: just only, the target directory.
    • copyJDBCDriversTo

      public static void copyJDBCDriversTo(File dest, IFileURLResolver resolver) throws IOException
      Utility function to copy the JDBC drivers directory to a destination directory. The destination directory must exist, and only modified files, new file are copied. Other files in the destination directory are not removed nor touched.

      A file is copied when its length or its content differs from the destination's; its last modified date alone never makes a copy.

      Parameters:
      dest - The destination directory, must exist.
      Throws:
      FileNotFoundException - If the dest directory does not exist.
      IOException - For directory creation or copy files errors.