/**
 * 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);
  }

}

@@ -947,16 +947,21 @@
   %7D%0A    
+if (!
 new Hist
@@ -1003,13 +1003,43 @@
 rgs)
-;%0A
+) %7B%0A      System.exit(-1);%0A  
   %7D%0A
+  %7D
 %0A%7D%0A

Exit with -1 status if server failed to start up