incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickcha...@apache.org
Subject svn commit: rev 36446 - incubator/depot/trunk/update/src/java/org/apache/depot/update/version
Date Mon, 16 Aug 2004 05:19:26 GMT
Author: nickchalko
Date: Sun Aug 15 22:19:25 2004
New Revision: 36446

Modified:
   incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java
Log:
Updated version class.

Modified: incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java
==============================================================================
--- incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java	(original)
+++ incubator/depot/trunk/update/src/java/org/apache/depot/update/version/Version.java	Sun
Aug 15 22:19:25 2004
@@ -1,7 +1,7 @@
 
 /* 
  *
- * NOTE: Automatically Generated File (see Depot Version for the Apache Incubator)
+ * NOTE: Automatically Generated File (see Depot Version from the Apache Incubator)
  * NOTE: http://incubator.apache.org/depot/version
  * NOTE: Ant Task: version-stamp
  * NOTE: AntLib:   apache-version
@@ -11,47 +11,78 @@
  */
 package org.apache.depot.update.version; 
 
+import java.util.Collections;
 import java.util.Date;
-
+import java.util.HashMap;
+import java.util.Map;
 /**
  * A autogenerated VersionStamp class for org.apache.depot.update .
- * Generated at Sat Jul 31 15:31:58 PDT 2004 
- * on GABRIEL/192.168.57.231
- * by nick
+ * Generated at Sun Aug 15 22:17:02 PDT 2004 
+ * on dolly/192.168.57.222
+ * by Nick
  * @author <a href="http://incubator.apache.org/depot">Depot Version</a> 
  *         from the <a href="http://incubator.apache.org/">Apache Incubator</a>,

-           version 0.1-dev-20040731
- * @version 0.1-dev-20040731
+           version 0.1.1-dev-20040815
+ * @version 0.1-dev-20040815
  */
-public final class Version {
+public final class Version { 
+	/* SINGLETON PATTERN */
 	private final static  Version INSTANCE = new  Version();
+    public static Version getInstance() {return INSTANCE ;}
+    
+    
+    private final Map  attributes;
+
+
+	
+	private  Version()  {
+	Map temp = new HashMap();
+	
+    temp.put("org.apache.depot.version.build.host",
+             "dolly");// dolly
+    temp.put("org.apache.depot.version.build.ant",
+             "Apache Ant version 1.6.2 compiled on July 16 2004");// Apache Ant version 1.6.2
compiled on July 16 2004
+    temp.put("org.apache.depot.version.build.user",
+             "Nick");// Nick
+    temp.put("org.apache.depot.version.build.datetime",
+             new java.util.Date(1092633422812L));// Sun Aug 15 22:17:02 PDT 2004
+    temp.put("org.apache.depot.version.build.jvm",
+             "1.4.2_05-b04");// 1.4.2_05-b04
+	attributes = Collections.unmodifiableMap(temp);
+	
+	}
 	
-	public static Version getInstance() {return INSTANCE ;}
 	
-	private  Version()  {}
 	
 	/**
-	 * The user that built org.apache.depot.update was nick.
-	 * @return the String "nick"
+	 * org.apache.depot.update is the Id of this project.
+	 * @return the String "org.apache.depot.update"
 	 */
-	public String getUser() {return "nick"; }
+	public String getId() {return "org.apache.depot.update"; }
 	
 		
 	/**
-	 * org.apache.depot.update was built on GABRIEL/192.168.57.231.
-	 * @return the String "GABRIEL/192.168.57.231"
+	 * The user that built org.apache.depot.update was Nick.
+	 * @return the String "Nick"
 	 */
-	public String getHost() {return "GABRIEL/192.168.57.231"; }
+	public String getUser() {return "Nick"; }
 	
+		
 	/**
-	 * org.apache.depot.update was built at Sat Jul 31 15:31:58 PDT 2004.
-	 * @return the Date "Sat Jul 31 15:31:58 PDT 2004"
+	 * org.apache.depot.update was built on dolly/192.168.57.222.
+	 * @return the String "dolly/192.168.57.222"
 	 */
-	public Date getDate() {return new Date(1091313118302l); }
+	public String getHost() {return "dolly/192.168.57.222"; }
+	
+	/**
+	 * org.apache.depot.update was built at Sun Aug 15 22:17:02 PDT 2004.
+	 * @return the Date "Sun Aug 15 22:17:02 PDT 2004"
+	 */
+	public Date getDate() {return new java.util.Date(1092633422937L); }
 	
 	/**
 	 * The ID of the Version Specification.
-	 * @return ID of the Version Specification.
+	 * @return the String "org.apache.depot.version".
 	 * @see org.apache.depot.version.specification.VersionSpecificationFactory
 	 */
 	public String getSpecificationId(){return "org.apache.depot.version";} 
@@ -64,20 +95,40 @@
 	public String getShortVersion() {return "0.1";}
 	
 	/**
-	 * org.apache.depot.update 0.1-dev-20040731.
-	 * @return the String "0.1-dev-20040731"
+	 * org.apache.depot.update 0.1-dev-20040815.
+	 * @return the String "0.1-dev-20040815"
 	 */
-	public String getLongVersion() {return "0.1-dev-20040731";}
+	public String getLongVersion() {return "0.1-dev-20040815";}
 
 	/**
-	 * org.apache.depot.update 0.1-dev-20040731.
-	 * @return the String "0.1-dev-20040731"
+	 * org.apache.depot.update 0.1-dev-20040815.
+	 * @return the String "0.1-dev-20040815"
 	 */
-	public String getDefaultVersion() {return "0.1-dev-20040731";}	
+	public String getDefaultVersion() {return "0.1-dev-20040815";}	
+
+	/**
+	 * Get the Unmodifiable map of attributes. 	
+	 * <dl>
+     *     <dt>org.apache.depot.version.build.host</dt>
+     *         <dd>dolly</dd>
+     *     <dt>org.apache.depot.version.build.ant</dt>
+     *         <dd>Apache Ant version 1.6.2 compiled on July 16 2004</dd>
+     *     <dt>org.apache.depot.version.build.user</dt>
+     *         <dd>Nick</dd>
+     *     <dt>org.apache.depot.version.build.datetime</dt>
+     *         <dd>Sun Aug 15 22:17:02 PDT 2004</dd>
+     *     <dt>org.apache.depot.version.build.jvm</dt>
+     *         <dd>1.4.2_05-b04</dd>
+     * </dl>
+	 * @return unmodifiable Map of attributes.
+	 */
+	public Map getAttributes () {return attributes;}
+
+
 	
 	/**
-	 * org.apache.depot.update 0.1-dev-20040731.
-	 * @return the String "0.1-dev-20040731"
+	 * org.apache.depot.update 0.1-dev-20040815.
+	 * @return the String "0.1-dev-20040815"
 	 */
-	public String toString() {return "0.1-dev-20040731";}
+	public String toString() {return "0.1-dev-20040815";}
 }    

Mime
View raw message