Package helma.main
Class CommandlineRunner
java.lang.Object
helma.main.CommandlineRunner
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic void
boot method for running a request from the command line.static void
print the usage hintsstatic void
printUsageError
(String msg) print the usage hints and prefix them with a message.
-
Constructor Details
-
CommandlineRunner
public CommandlineRunner()
-
-
Method Details
-
main
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:
Exception
- if the Helma home dir or classpath couldn't be built
-
printUsageError
print the usage hints and prefix them with a message. -
printUsageError
public static void printUsageError()print the usage hints
-