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 a Date 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 a Date 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 a Date 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 a Date object representing the date stored in the resource.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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 a Date 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 date
      c - A class in the package containing the resource
      Returns:
      a Date object containing the information stored in the resource, or null 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 a Date object representing the date stored in the resource.
      Parameters:
      resource - the resource containing the build date
      obj - An object in the package containing the resource
      Returns:
      a Date object containing the information stored in the resource, or null 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 a Date 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, or null 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 a Date 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, or null if the resource can't be found.