/** * 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 standard tool arguments, not null */ public static void main(String[] args) { // CSIGNORE new CoppClarkHolidayFileTool().invokeAndTerminate(args); } //------------------------------------------------------------------------- @Override protected void doRun() { HolidayMaster master = getToolContext().getHolidayMaster(); CoppClarkHolidayFileReader.createPopulated(master); } }