From depot-cvs-return-473-apmail-incubator-depot-cvs-archive=incubator.apache.org@incubator.apache.org Wed Jun 02 21:45:33 2004 Return-Path: Delivered-To: apmail-incubator-depot-cvs-archive@www.apache.org Received: (qmail 8582 invoked from network); 2 Jun 2004 21:45:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 21:45:33 -0000 Received: (qmail 5277 invoked by uid 500); 2 Jun 2004 21:45:51 -0000 Delivered-To: apmail-incubator-depot-cvs-archive@incubator.apache.org Received: (qmail 5249 invoked by uid 500); 2 Jun 2004 21:45:50 -0000 Mailing-List: contact depot-cvs-help@incubator.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: depot-dev@incubator.apache.org Delivered-To: mailing list depot-cvs@incubator.apache.org Received: (qmail 5228 invoked by uid 99); 2 Jun 2004 21:45:50 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 02 Jun 2004 14:45:50 -0700 Received: (qmail 8544 invoked by uid 65534); 2 Jun 2004 21:45:30 -0000 Date: 2 Jun 2004 21:45:30 -0000 Message-ID: <20040602214530.8538.qmail@minotaur.apache.org> From: ajack@apache.org To: depot-cvs@incubator.apache.org Subject: svn commit: rev 20762 - in incubator/depot/trunk/common/src/java/org/apache/depot/common/util: classpath debug X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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);