Package helma.main
Class CommandlineRunner
- java.lang.Object
-
- helma.main.CommandlineRunner
-
public class CommandlineRunner extends java.lang.Object
Helma command line runner class. This class creates and starts a single application, invokes a function in, writes its return value to the console and exits.
-
-
Constructor Summary
Constructors Constructor Description CommandlineRunner()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
boot method for running a request from the command line.static void
printUsageError()
print the usage hintsstatic void
printUsageError(java.lang.String msg)
print the usage hints and prefix them with a message.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
boot method for running a request from the command line. This retrieves the Helma home directory, creates the app and runs the function.- Parameters:
args
- command line arguments- Throws:
java.lang.Exception
- if the Helma home dir or classpath couldn't be built
-
printUsageError
public static void printUsageError(java.lang.String msg)
print the usage hints and prefix them with a message.
-
printUsageError
public static void printUsageError()
print the usage hints
-
-