HiRISE

HiRISE.HiPlan.Utilities
Class Version

java.lang.Object
  extended by HiRISE.HiPlan.Utilities.Version

public class Version
extends Object

A method and an application to get the real version number of the HiPlan subsystem. The real version number is kept in a file called "VERSION" in the directory above the package name. This file looks like such:

        Current version of the UA/HiROC HiPlan subsystem:

        2.12.3

Version:
1.5
Author:
Christian Schaller - UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Method Summary
static void main(String[] args)
          Invokes the trivial application that reports the HiPlan version number.
static String version()
          Gets the version string for the HiPlan subsystem.
static String version(Class representative)
          Gets the version string for an arbitrary HiRISE subsystem given a class from that subsystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Method Detail

version

public static String version(Class representative)
Gets the version string for an arbitrary HiRISE subsystem given a class from that subsystem. The package directory is searched first, followed by the directory above the package if VERSION is not found there. If the VERSION file cannot be found, "Unknown" is returned instead.

Parameters:
representative - a representative class from the package for which the version string is desired.
Returns:
the version string or "Unknown."

version

public static String version()
Gets the version string for the HiPlan subsystem. If the VERSION file cannot be found, "Unknown" is returned instead.

Returns:
the version string or "Unknown."

main

public static void main(String[] args)
Invokes the trivial application that reports the HiPlan version number. The version number is written to the standard output stream. If the version number cannot be found, "Unknown" is written instead.

Usage

Version

Command-line arguments are ignored.

Parameters:
args - the command-line arguments, none of which are used.
See Also:
version()

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona