Package edu.wisc.ssec.mcidasv.util
Class GetVer
java.lang.Object
edu.wisc.ssec.mcidasv.util.GetVer
This class is really just a wrapper around
getVersion().
Note: this class is likely to be used in contexts where we don't
have logging set up, so System.err and System.out are used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResourceAsStream(String name) Open for reading, a resource of the specified name from the search path used to load classes.static StringExtracts and returns McIDAS-V version information.static voidThe main.
-
Constructor Details
-
GetVer
public GetVer()
-
-
Method Details
-
getResourceAsStream
Open for reading, a resource of the specified name from the search path used to load classes. This method locates the resource through the system class loader.- Parameters:
name- Resource to read.- Returns:
- An
InputStreamfor reading the resource given byname, ornull.
-
getVersion
Extracts and returns McIDAS-V version information.- Returns:
Stringformatted like "McIDAS-V version VERSIONHERE built BUILDDATEHERE".- Throws:
Exception- ifbuild.propertiescould not be loaded into aPropertiesobject.
-
main
The main. Get McIDAS-V version and build data and print it out.- Parameters:
args- Ignored.
-