Class UpdateJDBCDriversDirectory


  • public final class UpdateJDBCDriversDirectory
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidcopyJDBCDriversTo​(java.io.File dest, IFileURLResolver resolver)
      Utility function to copy the JDBC drivers directory to a destination directory.
      static voidmain​(java.lang.String[] args)
      Command line to copy the JDBC drivers directory to a destination directory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.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.

        For speed, file contents is not checked, the length and last modified date of the files.

        Exit values are:

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

        public static void copyJDBCDriversTo​(java.io.File dest,
                                             IFileURLResolver resolver)
                                      throws java.io.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.

        For speed, file contents is not checked, the length and last modified date of the files.

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