You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@depot.apache.org by aj...@apache.org on 2004/06/02 21:45:30 UTC

svn commit: rev 20762 - in incubator/depot/trunk/common/src/java/org/apache/depot/common/util: classpath debug

Author: ajack
Date: Wed Jun  2 14:45:30 2004
New Revision: 20762

Modified:
   incubator/depot/trunk/common/src/java/org/apache/depot/common/util/classpath/PathWalker.java
   incubator/depot/trunk/common/src/java/org/apache/depot/common/util/debug/DebugUtils.java
Log:
Cosmetic tweaks.


Modified: incubator/depot/trunk/common/src/java/org/apache/depot/common/util/classpath/PathWalker.java
==============================================================================
--- incubator/depot/trunk/common/src/java/org/apache/depot/common/util/classpath/PathWalker.java	(original)
+++ incubator/depot/trunk/common/src/java/org/apache/depot/common/util/classpath/PathWalker.java	Wed Jun  2 14:45:30 2004
@@ -319,7 +319,7 @@
 								InputStream contents = null;
 								try {
 									File absoluteFile =
-										new File(root, file.getPath());
+										new File(root, pathName);
 
 									contents =
 										new FileInputStream(

Modified: incubator/depot/trunk/common/src/java/org/apache/depot/common/util/debug/DebugUtils.java
==============================================================================
--- incubator/depot/trunk/common/src/java/org/apache/depot/common/util/debug/DebugUtils.java	(original)
+++ incubator/depot/trunk/common/src/java/org/apache/depot/common/util/debug/DebugUtils.java	Wed Jun  2 14:45:30 2004
@@ -428,8 +428,13 @@
 			out.println("No Map.");
 		}
 	}
-	
+
 	public static void logMemoryInformation() {
+		logMemoryInformation(null);
+	
+	}
+	
+		public static void logMemoryInformation(String context) {
 		
 		Triple info = SystemUtils.getMemoryInformation();
 		
@@ -443,6 +448,11 @@
 		minfo.append(", Max: ");
 		minfo.append(info.getThird());
 		minfo.append(".");
+		
+		if (null != context ){
+			minfo.append(" @ ");
+			minfo.append(context);
+		}
 
 		String message = minfo.toString();
 		Logger.getLogger().info(message);