public class GetVer extends Object
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 and Description |
---|
GetVer() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path
used to load classes.
|
static String |
getVersion()
Extracts and returns McIDAS-V version information.
|
static void |
main(String[] args)
The main.
|
public GetVer()
public InputStream getResourceAsStream(String name)
name
- Resource to read.InputStream
for reading the resource given by
name
, or null
.public static String getVersion() throws Exception
String
formatted like
"McIDAS-V version VERSIONHERE built BUILDDATEHERE".Exception
- if build.properties
could not be loaded into
a Properties
object.