1 package org.codehaus.mojo.exec;
2
3 /**
4 * Simple class with a main method to call from unit tests
5 *
6 * @author Jerome Lacoste <jerome@coffeebreaks.org>
7 * @version $Id: DummyMain.java 6588 2008-03-28 12:22:57Z bentmann $
8 */
9 public class DummyMain
10 {
11 /**
12 * Prints Hello followed by each argument, then a new line. Use a space character as separator.
13 *
14 * @param args
15 */
16 public static void main( String[] args )
17 {
18 StringBuffer buffer = new StringBuffer( "Hello" );
19
20 for ( int i = 0; i < args.length; i++ )
21 {
22 buffer.append( System.getProperty( "line.separator" ) ).append( args[i] );
23 }
24
25 System.out.println( buffer.toString() );
26 }
27 }