kg.apc.cmdtools.HelloWorldTool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cmdrunner Show documentation
Show all versions of cmdrunner Show documentation
Universal runner used by JP@GC and PerfMon server agent
The newest version!
package kg.apc.cmdtools;
import java.io.PrintStream;
import java.util.ListIterator;
public class HelloWorldTool extends AbstractCMDTool {
protected int processParams(ListIterator args) throws UnsupportedOperationException, IllegalArgumentException {
System.out.println("Hello, World!");
System.out.println("Today's classpath is: " + System.getProperty("java.class.path"));
return 0;
}
protected void showHelp(PrintStream os) {
os.println("This tool just prints 'Hello, World!'");
}
}