001 /* 002 Copyright (C) 2000 Chr. Clemens Lee <clemens@kclee.com>. 003 004 This file is part of JavaNCSS 005 (http://www.kclee.com/clemens/java/javancss/). 006 007 JavaNCSS is free software; you can redistribute it and/or modify it 008 under the terms of the GNU General Public License as published by the 009 Free Software Foundation; either version 2, or (at your option) any 010 later version. 011 012 JavaNCSS is distributed in the hope that it will be useful, but WITHOUT 013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 015 for more details. 016 017 You should have received a copy of the GNU General Public License 018 along with JavaNCSS; see the file COPYING. If not, write to 019 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 020 Boston, MA 02111-1307, USA. */ 021 022 package javancss; 023 024 import java.io.IOException; 025 import java.util.Locale; 026 027 /** 028 * Main class of the JavaNCSS application. It does nothing 029 * than starting the batch process and immediately delegates 030 * control to the Javancss class. 031 * 032 * @author Chr. Clemens Lee <clemens@kclee.com> 033 * @version $Id: Main.java 151 2009-05-22 21:41:33Z hboutemy $ 034 */ 035 public class Main { 036 private static final String IMPL_VERSION = Main.class.getPackage().getImplementationVersion(); 037 public static final String S_RCS_HEADER = "$Header: /javancss/Main.java,v " 038 + ((IMPL_VERSION == null) ? "0.0 2001/01/01 00:00:00" : IMPL_VERSION) + " clemens Exp clemens $"; 039 040 public static void main(String[] asArgs) throws IOException { 041 Locale.setDefault( Locale.US ); 042 043 Javancss pJavancss = new Javancss(asArgs); 044 045 if (pJavancss.getLastErrorMessage() != null) { 046 System.exit(1); 047 } 048 049 System.exit(0); 050 } 051 }