| 1 | /* |
| 2 | * Main.java |
| 3 | * |
| 4 | * Project: EL4Ant |
| 5 | * |
| 6 | * WHEN WHO WHAT DESCRIPTION |
| 7 | * 22.03.05 YMA Creation |
| 8 | * |
| 9 | * EL4Ant, a Ant-based buildsystem, http://el4ant.sourceforge.net |
| 10 | * Copyright (C) 2005 by ELCA Informatique SA, Av. de la Harpe 22-24, |
| 11 | * 1000 Lausanne, Switzerland, http://www.elca.ch |
| 12 | * |
| 13 | * This program is published under the GNU General Public License (GPL) license. |
| 14 | * http://www.gnu.org/licenses/gpl.txt |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * For alternative licensing, please contact info@elca.ch |
| 22 | */ |
| 23 | package helloworld; |
| 24 | |
| 25 | import helloworld.util.Tools; |
| 26 | |
| 27 | |
| 28 | /** |
| 29 | * Demonstration main class. |
| 30 | * |
| 31 | * <script type="text/javascript">printFileStatus |
| 32 | * ("$URL: https://svn.sourceforge.net/svnroot/el4ant/trunk/helloworld/app/java/helloworld/Main.java $", |
| 33 | * "$Revision: 354 $", "$Date: 2006-06-26 15:28:44 +0200 (Mon, 26 Jun 2006) $", "$Author: ymartin $" |
| 34 | * );</script> |
| 35 | * |
| 36 | * @author Yves Martin (YMA) |
| 37 | * @version $Revision: 354 $ |
| 38 | */ |
| 39 | public class Main { |
| 40 | |
| 41 | /** |
| 42 | * Do the job, whatever it is. |
| 43 | */ |
| 44 | public void doTheJob() { |
| 45 | Tools.doSomething("Hello World !"); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Main method. Program entry point. |
| 50 | * |
| 51 | * @param args ignored arguments |
| 52 | */ |
| 53 | public static void main(String[] args) { |
| 54 | Main instance = new Main(); |
| 55 | instance.doTheJob(); |
| 56 | |
| 57 | for (int i = 0; i < args.length; i++) { |
| 58 | System.out.println("Arg " + i + " = " + args[i]); |
| 59 | } |
| 60 | |
| 61 | System.exit(0); |
| 62 | } |
| 63 | } |