System.out.println( line );
}
}
public static void main( String[] args ) throws SQLException, FileNotFoundException, IOException, InterruptedException {
ArgumentParametrParser parser = new ArgumentParametrParser( args );
if ( args.length == 0 || parser.getValueByKey( ARGUMENT_KEYS[3] ) != null ) {
DataBaseInitializer.help();
return;
}
try {
DataBaseInitializer dbInit = new DataBaseInitializer( parser.getValueByKey( ARGUMENT_KEYS[0] ),
parser.getValueByKey( ARGUMENT_KEYS[1] ), parser.getValueByKey( ARGUMENT_KEYS[2] ) );
dbInit.initializeDatabase();
} catch ( FileNotFoundException ex ) {
System.out.println( "Selected file not found" + ex.getMessage() );
}
}