}
tableList = new ArrayList<String>(args.length);
for (String tablename : args) {
tableList.add(tablename);
}
Configuration conf = Configuration.getInstance();
String outputDirectoryName = conf.getOutputDirectory();
if (outputDirectoryName == null) {
throw new IllegalArgumentException("output directory must not be null");
}
outputDirectory = new File(outputDirectoryName);
if (!outputDirectory.exists()) {
throw new IllegalArgumentException(MessageFormat.format(
"出力ディレクトリ({0})が存在しません",
outputDirectoryName));
}
if (!outputDirectory.isDirectory()) {
throw new IllegalArgumentException(MessageFormat.format(
"指定された出力ディレクトリ({0})はディレクトリでありません",
outputDirectoryName));
}
if (!outputDirectory.canWrite()) {
throw new IllegalArgumentException(MessageFormat.format(
"指定された出力ディレクトリ({0})の書き込み権が存在しません",
outputDirectoryName));
}
databaseName = conf.getDatabaseName();
if (databaseName == null) {
throw new IllegalArgumentException("database name must not be null");
}
conn = DbUtils.getConnection();
}