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

com.codetaco.funnel.App Maven / Gradle / Ivy

There is a newer version: 3.0.5
Show newest version
package com.codetaco.funnel;

import java.text.ParseException;

import org.apache.log4j.LogManager;
import org.apache.log4j.xml.DOMConfigurator;

/**
 * 

* App class. *

* * @author Chris DeGreef [email protected] */ public class App { /** *

* abort. *

* * @param code a int. * @param ex a {@link java.lang.Exception} object. */ static public void abort(final int code, final Exception ex) { ex.printStackTrace(); System.exit(code); } /** *

* main. *

* * @param args a {@link java.lang.String} object. * @throws java.lang.Throwable if any. */ public static void main(final String... args) throws Throwable { final AppContext cfg = new AppContext(workDir()); LogManager.resetConfiguration(); DOMConfigurator.configure(cfg.log4jConfigFileName); try { Funnel.sort(cfg, args); } catch (final ParseException e) { System.out.println(e.getMessage()); } System.exit(0); } /** * @return */ static private String workDir() { return System.getProperty("user.dir"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy