/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.integration.coppclark;
import com.opengamma.component.tool.AbstractTool;
import com.opengamma.integration.tool.IntegrationToolContext;
import com.opengamma.master.holiday.HolidayMaster;
import com.opengamma.scripts.Scriptable;
/**
* Loads the holiday data from the Copp-Clark data source.
* <p>
* This will merge the input with the data already in the database.
*/
@Scriptable
public class CoppClarkHolidayFileTool extends AbstractTool<IntegrationToolContext> {
/**
* Main method to run the tool.
*
* @param args the arguments, not null
*/
public static void main(String[] args) { // CSIGNORE
new CoppClarkHolidayFileTool().initAndRun(args, IntegrationToolContext.class);
System.exit(0);
}
//-------------------------------------------------------------------------
@Override
protected void doRun() {
HolidayMaster master = getToolContext().getHolidayMaster();
CoppClarkHolidayFileReader.createPopulated(master);
}
}