Package com.iizix.jdbc
Class UpdateJDBCDriversDirectory
java.lang.Object
com.iizix.jdbc.UpdateJDBCDriversDirectory
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 SummaryModifier and TypeMethodDescription- static void- copyJDBCDriversTo- (File dest, IFileURLResolver resolver) Utility function to copy the JDBC drivers directory to a destination directory.- static voidCommand line to copy the JDBC drivers directory to a destination directory.
- Method Details- mainCommand 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.
 
- copyJDBCDriversToUtility 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:
- FileNotFoundException- If the- destdirectory does not exist.
- IOException- For directory creation or copy files errors.