incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: rev 20762 - in incubator/depot/trunk/common/src/java/org/apache/depot/common/util: classpath debug
Date Wed, 02 Jun 2004 21:45:30 GMT
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);

Mime
View raw message