public class Main
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Set |
FORMATS
Define set of valid formats.
|
Modifier | Constructor and Description |
---|---|
private |
Main()
Private constructor to prevent this class being instantiated.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main method to allow this to be run from the command line.
|
private static void |
showHelp(org.apache.commons.cli.Options options,
java.lang.String msg)
Utility function for showing help using commons-cli.
|
private static final java.util.Set FORMATS
private Main()
private static void showHelp(org.apache.commons.cli.Options options, java.lang.String msg)
options
- Command line options.msg
- Optional message to show.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- A string array of length two containing the filenames of
two jar files, the first of which being the older of the
two.java.lang.Exception
- when there is an underlying exception, e.g.
writing to a file caused an IOException