All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.sync.SyncToolInitializer Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.sync;

import org.duracloud.sync.config.SyncToolConfig;
import org.duracloud.sync.config.SyncToolConfigParser;

/**
 * Initializes the configuration of the Sync Tool.
 *
 * @author: Bill Branan
 * Date: 2/19/13
 */
public class SyncToolInitializer {

    public static void main(String[] args) {
        SyncToolInitializer initializer = new SyncToolInitializer();
        initializer.runSyncTool(args);
    }

    public void runSyncTool(String[] args) {
        // Parse command line options.
        SyncToolConfigParser syncConfigParser = new SyncToolConfigParser();
        SyncToolConfig syncConfig = syncConfigParser.processCommandLine(args);

        // Start up the SyncTool
        SyncTool syncTool = new SyncTool();
        syncTool.setSyncConfig(syncConfig);
        syncTool.runSyncTool();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy