/**
 * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.integration.timeseries.snapshot;

import com.opengamma.component.OpenGammaComponentServer;

/**
 * Historical timeseries snapshotter.
 */
public class HistoricalTimeSeriesSnapshotter extends OpenGammaComponentServer {

  /**
   * Main method to start an OpenGamma JVM process for development.
   * 
   * @param args  the arguments
   */
  public static void main(String[] args) { // CSIGNORE
    if (args.length == 0) {
      // if no command line arguments, then use default arguments suitable for development in an IDE
      // the first argument is for verbose startup, to aid understanding
      // the second argument defines the start of a chain of properties files providing the configuration
      args = new String[] {"-v", "classpath:/htssnapshot/hts-snapshot.properties"};
    }
    new HistoricalTimeSeriesSnapshotter().run(args);
  }

}

/**
 * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.integration.timeseries.snapshot;

import com.opengamma.component.OpenGammaComponentServer;

/**
 * Historical timeseries snapshotter.
 */
public class HistoricalTimeSeriesSnapshotter extends OpenGammaComponentServer {

  /**
   * Main method to start an OpenGamma JVM process for development.
   * 
   * @param args  the arguments
   */
  public static void main(String[] args) { // CSIGNORE
    if (args.length == 0) {
      // if no command line arguments, then use default arguments suitable for development in an IDE
      // the first argument is for verbose startup, to aid understanding
      // the second argument defines the start of a chain of properties files providing the configuration
      args = new String[] {"-v", "classpath:/htssnapshot/hts-snapshot.properties"};
    }
    if (!new HistoricalTimeSeriesSnapshotter().run(args)) {
      System.exit(-1);
    }
  }
}

Exit with -1 status if server failed to start up
[PLAT-3891] Exit with -1 status if server failed to start up
