Class test

java.lang.Object
  |
  +--test

public class test
extends java.lang.Object

Startup utility class allowing querying MARF's version class revisions, and copyright. $Id: test.java,v 1.37 2005/06/03 16:37:37 mokhov Exp $

Since:
0.0.1
Version:
$Revision: 1.37 $
Author:
Serguei Mokhov

Field Summary
static int OPT_COPYRIGHT
          Option number for --copyright.
static int OPT_HELP_LONG
          Option number for --help.
static int OPT_HELP_SHORT
          Option number for -h.
static int OPT_REVISION
          Option number for --verbose.
static int OPT_VERSION
          Option number for --version.
 
Constructor Summary
test()
           
 
Method Summary
static java.lang.String getRevision()
          Returns source code revision information.
static void main(java.lang.String[] argv)
          Main program expecting and processing one or more options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPT_HELP_LONG

public static final int OPT_HELP_LONG
Option number for --help.

Since:
0.3.0
See Also:
Constant Field Values

OPT_HELP_SHORT

public static final int OPT_HELP_SHORT
Option number for -h.

Since:
0.3.0
See Also:
Constant Field Values

OPT_VERSION

public static final int OPT_VERSION
Option number for --version.

Since:
0.3.0
See Also:
Constant Field Values

OPT_REVISION

public static final int OPT_REVISION
Option number for --verbose.

Since:
0.3.0
See Also:
Constant Field Values

OPT_COPYRIGHT

public static final int OPT_COPYRIGHT
Option number for --copyright.

Since:
0.3.0
See Also:
Constant Field Values
Constructor Detail

test

public test()
Method Detail

main

public static void main(java.lang.String[] argv)
Main program expecting and processing one or more options.

Parameters:
argv - command-line options. Accepted values are "--help", "-h", "--version", "--verbose", and "--copyright".

getRevision

public static java.lang.String getRevision()
Returns source code revision information.

Returns:
revision string
Since:
0.3.0