Package org.osjava.jardiff
Class Main
- java.lang.Object
-
- org.osjava.jardiff.Main
-
public class Main extends java.lang.Object
A static entry point for use from the command line.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set
FORMATS
Define set of valid formats.
-
Constructor Summary
Constructors Modifier Constructor Description private
Main()
Private constructor to prevent this class being instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
showHelp
private static void showHelp(org.apache.commons.cli.Options options, java.lang.String msg)
Utility function for showing help using commons-cli.- Parameters:
options
- Command line options.msg
- Optional message to show.
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Main method to allow this to be run from the command line. This needs work, currently only takes two arguments, which are the old jar file and the new jar file.- Parameters:
args
- A string array of length two containing the filenames of two jar files, the first of which being the older of the two.- Throws:
java.lang.Exception
- when there is an underlying exception, e.g. writing to a file caused an IOException
-
-