Package org.openbp.common.commandline

Examples of org.openbp.common.commandline.CommandLineParser.printUsageAndExit()


        cp.parse(args);
      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        cp.printUsageAndExit();
      }

      processor = new SyncModel();
      processor.setProcessServer(new ProcessServerFactory().createProcessServer("OpenBP-SyncModel-Hibernate.spring.xml"));
View Full Code Here


        cp.parse(args);
      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        cp.printUsageAndExit();
      }

      HibernateDDLGenerator generator = new HibernateDDLGenerator();

      generator.setDialect(cp.getStringOption("Dialect"));
View Full Code Here

      generator.setDdlCreateFileName(cp.getStringOption("DdlCreateFile"));
      generator.setDdlDropFileName(cp.getStringOption("DdlDropFile"));

      if (generator.getDdlCreateFileName() == null && generator.getDdlDropFileName() == null)
      {
        cp.printUsageAndExit();
      }

      generator.generate();

      System.exit(0);
View Full Code Here

      }
      catch (CommandLineParserException e)
      {
        System.err.println(e.getMessage());
        System.err.println("");
        cp.printUsageAndExit();
      }
    }

    if (first)
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.