Package org.openstreetmap.osmosis.core.cli

Examples of org.openstreetmap.osmosis.core.cli.CommandLineParser


   *
   * @param args
   *            The command line arguments.
   */
  public static void run(String[] args) {
    CommandLineParser commandLineParser;
    TaskRegistrar taskRegistrar;
    Pipeline pipeline;
    long startTime;
    long finishTime;
   
    startTime = System.currentTimeMillis();
   
    configureLoggingConsole();
   
    commandLineParser = new CommandLineParser();
   
    // Parse the command line arguments into a consumable form.
    commandLineParser.parse(args);
   
    // Configure the new logging level.
    configureLoggingLevel(commandLineParser.getLogLevelIndex());
   
    LOG.info("Osmosis Version " + OsmosisConstants.VERSION);
    taskRegistrar = new TaskRegistrar();
    taskRegistrar.initialize(commandLineParser.getPlugins());
   
    pipeline = new Pipeline(taskRegistrar.getFactoryRegister());
   
    LOG.info("Preparing pipeline.");
    pipeline.prepare(commandLineParser.getTaskInfoList());
   
    LOG.info("Launching pipeline execution.");
    pipeline.execute();
   
    LOG.info("Pipeline executing, waiting for completion.");
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.core.cli.CommandLineParser

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.