KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > csdl > stackmvc > util > SysInfo


1 //Portions Copyright 2001, Philip Johnson. See LicenseInfo.html for details.
2
package csdl.stackmvc.util;
3
4 /**
5  * Provides system information (build and release data).
6  * Is also the main class run when invoking the stackmvc jar file.
7  *
8  * @author Philip Johnson.
9  * @version $Id: SysInfo.java,v 1.2 2003/01/25 01:49:02 jagustin Exp $
10  */

11 public class SysInfo {
12
13   /** StackMVC release value supplied during build process by Ant. */
14   private static String JavaDoc release = "@release@";
15
16   /** StackMVC buildTime value supplied during build process by Ant. */
17   private static String JavaDoc buildTime = "@buildTime@";
18
19
20   /**
21    * Gets the release attribute of the SysInfo class
22    *
23    * @return The release value
24    */

25   public static String JavaDoc getRelease() {
26     return SysInfo.release;
27   }
28
29
30   /**
31    * Gets the buildtime attribute of the SysInfo class
32    *
33    * @return The buildtime value
34    */

35   public static String JavaDoc getBuildTime() {
36     return SysInfo.buildTime;
37   }
38
39
40   /**
41    * Main class for the StackMVC system.
42    * Prints the release information.
43    *
44    * @param args Ignored.
45    */

46   public static void main(String JavaDoc args[]) {
47     System.out.println("Stack MVC Release: " + release);
48     System.out.println(" Build time: " + buildTime);
49   }
50 }
51
Popular Tags