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 String
Extracts and returns McIDAS-V version information.static void
The 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
InputStream
for reading the resource given byname
, ornull
.
-
getVersion
Extracts and returns McIDAS-V version information.- Returns:
String
formatted like "McIDAS-V version VERSIONHERE built BUILDDATEHERE".- Throws:
Exception
- ifbuild.properties
could not be loaded into aProperties
object.
-
main
The main. Get McIDAS-V version and build data and print it out.- Parameters:
args
- Ignored.
-