Package util

Examples of util.ArgumentParametrParser


            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() );
        }
    }
View Full Code Here

TOP

Related Classes of util.ArgumentParametrParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.