SysInfo.java :  » Code-Analyzer » JBlanket » csdl » stackmvc » util » Java Open Source

Java Open Source » Code Analyzer » JBlanket 
JBlanket » csdl » stackmvc » util » SysInfo.java
//Portions Copyright 2001, Philip Johnson. See LicenseInfo.html for details.
package csdl.stackmvc.util;

/**
 * Provides system information (build and release data).
 * Is also the main class run when invoking the stackmvc jar file.
 *
 * @author Philip Johnson.
 * @version $Id: SysInfo.java,v 1.2 2003/01/25 01:49:02 jagustin Exp $
 */
public class SysInfo {

  /** StackMVC release value supplied during build process by Ant. */
  private static String release = "@release@";

  /** StackMVC buildTime value supplied during build process by Ant. */
  private static String buildTime = "@buildTime@";


  /**
   * Gets the release attribute of the SysInfo class
   *
   * @return The release value
   */
  public static String getRelease() {
    return SysInfo.release;
  }


  /**
   * Gets the buildtime attribute of the SysInfo class
   *
   * @return The buildtime value
   */
  public static String getBuildTime() {
    return SysInfo.buildTime;
  }


  /**
   * Main class for the StackMVC system.
   * Prints the release information.
   *
   * @param args Ignored.
   */
  public static void main(String args[]) {
    System.out.println("Stack MVC Release:    " + release);
    System.out.println("          Build time: " + buildTime);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.