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

io.gem.main.SbkGemYalMain Maven / Gradle / Ivy

There is a newer version: 5.3
Show newest version
/**
 * Copyright (c) KMG. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package io.gem.main;

import io.gem.api.impl.SbkGemYal;
import io.sbk.exception.HelpException;
import org.apache.commons.cli.ParseException;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;

/**
 * Class SbkGemYalMain.
 */
public final class SbkGemYalMain {

    /**
     * The main Method of sbk-gem-yal module.
     *
     * @param args String[]
     */
    public static void main(final String[] args) {
        try {
            SbkGemYal.run(args, null, null, null);
        } catch (HelpException ex) {
            System.exit(2);
        } catch (ParseException | IllegalArgumentException | IOException | TimeoutException | InterruptedException |
                 ExecutionException | ClassNotFoundException | InvocationTargetException | InstantiationException |
                 NoSuchMethodException | IllegalAccessException ex) {
            ex.printStackTrace();
            System.exit(1);
        }
        System.exit(0);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy