Package com.dbdeploy

Source Code of com.dbdeploy.CommandLineTarget

package com.dbdeploy;

import com.dbdeploy.exceptions.UsageException;
import com.dbdeploy.DbDeploy;

public class CommandLineTarget {
  private static final DbDeployCommandLineParser commandLineParser = new DbDeployCommandLineParser();

  public static void main(String[] args) {
    try {
      DbDeploy dbDeploy = new DbDeploy();
      commandLineParser.parse(args, dbDeploy);
      dbDeploy.go();
    } catch (UsageException ex) {
      System.err.println("ERROR: " + ex.getMessage());
      commandLineParser.printUsage();
    } catch (Exception ex) {
      System.err.println("Failed to apply changes: " + ex);
      ex.printStackTrace();
      System.exit(2);
    }

    System.exit(0);
  }

}
TOP

Related Classes of com.dbdeploy.CommandLineTarget

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.