Package edu.gvsu.kurmasz.warszawa.util
Class BuildDate
java.lang.Object
edu.gvsu.kurmasz.warszawa.util.BuildDate
public class BuildDate
extends java.lang.Object
Deprecated.
Use
BuildInfo
instead.Methods that return information about when a particular package was last
built. They rely on the build date being stored in a properties file with a known
name. (One way to do this is to have ant update the file.)
- Author:
- Zachary Kurmas
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_RESOURCE_NAME
Deprecated. -
Method Summary
Modifier and Type Method Description static java.util.Date
getBuildDate(java.lang.Class<? extends java.lang.Object> c)
Deprecated.Loads the default resource for the class' package and returns aDate
object representing the date stored in the resource.static java.util.Date
getBuildDate(java.lang.Object obj)
Deprecated.Loads the default resource for the object's package and returns aDate
object representing the date stored in the resource.static java.util.Date
getBuildDate(java.lang.String resource, java.lang.Class<? extends java.lang.Object> c)
Deprecated.Loads the specified resource for the class' package and returns aDate
object representing the date stored in the resource.static java.util.Date
getBuildDate(java.lang.String resource, java.lang.Object obj)
Deprecated.Loads the specified resource for the object's package and returns aDate
object representing the date stored in the resource.
-
Field Details
-
DEFAULT_RESOURCE_NAME
public static final java.lang.String DEFAULT_RESOURCE_NAMEDeprecated.- See Also:
- Constant Field Values
-
-
Method Details
-
getBuildDate
public static java.util.Date getBuildDate(java.lang.String resource, java.lang.Class<? extends java.lang.Object> c)Deprecated.Loads the specified resource for the class' package and returns aDate
object representing the date stored in the resource. Obtained from http://forum.java.sun.com/thread.jspa?threadID=584408&messageID=3012258- Parameters:
resource
- the resource containing the build datec
- A class in the package containing the resource- Returns:
- a
Date
object containing the information stored in the resource, ornull
if the resource can't be found.
-
getBuildDate
public static java.util.Date getBuildDate(java.lang.String resource, java.lang.Object obj)Deprecated.Loads the specified resource for the object's package and returns aDate
object representing the date stored in the resource.- Parameters:
resource
- the resource containing the build dateobj
- An object in the package containing the resource- Returns:
- a
Date
object containing the information stored in the resource, ornull
if the resource can't be found.
-
getBuildDate
public static java.util.Date getBuildDate(java.lang.Object obj)Deprecated.Loads the default resource for the object's package and returns aDate
object representing the date stored in the resource.- Parameters:
obj
- An object in the package containing the resource- Returns:
- a
Date
object containing the information stored in the resource, ornull
if the resource can't be found.
-
getBuildDate
public static java.util.Date getBuildDate(java.lang.Class<? extends java.lang.Object> c)Deprecated.Loads the default resource for the class' package and returns aDate
object representing the date stored in the resource.- Parameters:
c
- A class in the package containing the resource- Returns:
- a
Date
object containing the information stored in the resource, ornull
if the resource can't be found.
-