org.osjava.jardiff
Class Main

java.lang.Object
  extended by org.osjava.jardiff.Main

public class Main
extends java.lang.Object

A static entry point for use from the command line.


Field Summary
private static java.util.Set FORMATS
          Define set of valid formats.
 
Constructor Summary
private Main()
          Private constructor to prevent this class being instantiated.
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMATS

private static final java.util.Set FORMATS
Define set of valid formats. This is here to make maintenance more easy.

Constructor Detail

Main

private Main()
Private constructor to prevent this class being instantiated.

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