|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| DummyMain | Line # 9 | 4 | 0% | 2 | 7 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 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 | 0 |
public static void main( String[] args ) |
| 17 | { | |
| 18 | 0 | StringBuffer buffer = new StringBuffer( "Hello" ); |
| 19 | ||
| 20 | 0 | for ( int i = 0; i < args.length; i++ ) |
| 21 | { | |
| 22 | 0 | buffer.append( System.getProperty( "line.separator" ) ).append( args[i] ); |
| 23 | } | |
| 24 | ||
| 25 | 0 | System.out.println( buffer.toString() ); |
| 26 | } | |
| 27 | } | |
|
||||||||||||