*
* @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.");