Package com.dbxml.db.client.tools

Examples of com.dbxml.db.client.tools.CommandLine


         while ( server == null || !server.isRunning() );

         psOut.println("Running Bootstrap Script");

         // Execute The Bootstrap Script
         CommandLine cl = new CommandLine();
         cl.setClient(new dbXMLClientImpl());

         cl.setProperty(CommandLine.TOTALS, Boolean.FALSE);
         cl.setProperty(CommandLine.DURATIONS, Boolean.FALSE);
         cl.setProperty(CommandLine.CONFIRM, Boolean.FALSE);
         cl.setProperty(CommandLine.INTERACTIVE, Boolean.FALSE);

         cl.setWriter(new OutputStreamWriter(psOut, "UTF8"));
         cl.setErrorWriter(new OutputStreamWriter(psErr, "UTF8"));

         FileInputStream fis = new FileInputStream("install/create-db.dbxml");
         BufferedInputStream bis = new BufferedInputStream(fis, 4096);
         InputStreamReader isr = new InputStreamReader(bis, "UTF8");
         cl.setReader(isr);
         cl.process();

         psOut.println("Bootstrap Complete");
         server.shutDown(0);
      }
      catch ( Exception e ) {
View Full Code Here

TOP

Related Classes of com.dbxml.db.client.tools.CommandLine

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.