edu.isi.pegasus.planner.client
Class VersionNumber

java.lang.Object
  extended by edu.isi.pegasus.planner.client.VersionNumber

public class VersionNumber
extends Object

This class just prints the current version number on stdout.

Version:
$Revision: 4981 $
Author:
Jens-S. Vöckler, Yong Zhao

Field Summary
private  String m_application
          application's own name.
 
Constructor Summary
VersionNumber(String appName)
          ctor: Constructs a new instance with the given application name.
 
Method Summary
protected  gnu.getopt.LongOpt[] generateValidOptions()
          Creates a set of options.
static void main(String[] args)
           
 void showUsage()
          Prints the usage string.
static void showVersion(Version v, boolean build)
          Print the version information onto stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_application

private String m_application
application's own name.

Constructor Detail

VersionNumber

public VersionNumber(String appName)
ctor: Constructs a new instance with the given application name.

Parameters:
appName - is the name of the application
Method Detail

showUsage

public void showUsage()
Prints the usage string.


generateValidOptions

protected gnu.getopt.LongOpt[] generateValidOptions()
Creates a set of options.

Returns:
the assembled long option list

showVersion

public static void showVersion(Version v,
                               boolean build)
Print the version information onto stdout.

Parameters:
v - is the version information class.
build - if true, also show build information with version.

main

public static void main(String[] args)


Copyright © 2011 The University of Southern California. All Rights Reserved.