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 31017 - incubator/depot/trunk/version/src/java/org/apache/depot/version/generation
Date Sat, 31 Jul 2004 07:01:34 GMT
Author: nickchalko
Date: Sat Jul 31 00:01:33 2004
New Revision: 31017

Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/Skeleton.java
Log:
Javadocs.

Modified: incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/Skeleton.java
==============================================================================
--- incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/Skeleton.java
(original)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/generation/Skeleton.java
Sat Jul 31 00:01:33 2004
@@ -15,18 +15,19 @@
  */
 package org.apache.depot.version.generation;
 
+import java.net.UnknownHostException;
 import java.util.Date;
 
 import org.apache.depot.version.VersionMarker;
 
 /**
- * @author nick
+ * The Skeleton for the VersionSourceGenerator
  * 
- * TODO To change the template for this generated type comment go to Window -
- * Preferences - Java - Code Generation - Code and Comments
+ * @version
  */
 public class Skeleton {
 	final VersionMarker depotVersion;
+
 	final Date date = new Date();
 
 	public Skeleton() {
@@ -40,14 +41,33 @@
 		depotVersion = temp;
 	}
 
+	/**
+	 * The user name from the System Property user.name
+	 * 
+	 * @return the user name as a String.
+	 */
 	String getUser() {
-		return null;
+		return System.getProperty("user.name");
 	}
 
+	/**
+	 * The IP and hostname of this machine
+	 * 
+	 * @return hostname/ip as a String.
+	 */
 	String getHost() {
-		return null;
+		try {
+			return java.net.InetAddress.getLocalHost().toString();
+		} catch (UnknownHostException e) {
+			return "UknownHost";
+		}
 	}
 
+	/**
+	 * The date the build was started.
+	 * 
+	 * @return Date the build was started.
+	 */
 	Date getDate() {
 		return date;
 	}

Mime
View raw message