Package org.apache.derby.iapi.tools
Class run
java.lang.Object
org.apache.derby.iapi.tools.run
The run class facilitates running the various Derby utilities with the java -jar command. For example:
java -jar derbyrun.jar ij [-p propertiesfile] [sql script]
java -jar derbyrun.jar sysinfo [-cp ...] [-cp help]
java -jar derbyrun.jar dblook [args] (or no arguments for usage)
java -jar derbyrun.jar server [args] (or no arguments for usage)
java -jar derbyrun.jar SignatureChecker [args] (or no arguments for usage)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Switch on the first argument to choose the tool, pass the remaining arguments to the tool.static void
Print the usage statement if the user didn't enter a valid choice of tool.private static String[]
Utility method to trim one element off of the argument array.
-
Constructor Details
-
run
private run()Private constructor. No instances allowed.
-
-
Method Details
-
main
Switch on the first argument to choose the tool, pass the remaining arguments to the tool.- Throws:
IOException
-
trimArgs
Utility method to trim one element off of the argument array.- Parameters:
args
- the arguments array- Returns:
- trimmed the trimmed array
-
printUsage
public static void printUsage()Print the usage statement if the user didn't enter a valid choice of tool.
-