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 20756 - in incubator/depot/trunk/version/src: java/org/apache/depot/version/ant/available test/java/org/apache/depot/version/ant/available
Date Wed, 02 Jun 2004 14:50:31 GMT
Author: ajack
Date: Wed Jun  2 07:50:30 2004
New Revision: 20756

Modified:
   incubator/depot/trunk/version/src/java/org/apache/depot/version/ant/available/AvailableTask.java
   incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/VersionAvailableTaskTest.java
   incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/available.xml
Log:
Leverage new memory usage debug, to try to track down OutOfMemory error.


Modified: incubator/depot/trunk/version/src/java/org/apache/depot/version/ant/available/AvailableTask.java
==============================================================================
--- incubator/depot/trunk/version/src/java/org/apache/depot/version/ant/available/AvailableTask.java
(original)
+++ incubator/depot/trunk/version/src/java/org/apache/depot/version/ant/available/AvailableTask.java
Wed Jun  2 07:50:30 2004
@@ -18,6 +18,7 @@
 
 import java.util.Comparator;
 
+import org.apache.depot.common.util.debug.DebugUtils;
 import org.apache.depot.version.Version;
 import org.apache.depot.version.VersionException;
 import org.apache.depot.version.VersionMarker;
@@ -40,6 +41,7 @@
 	 * Constructor for ConstraintEvaluatorTask.
 	 */
 	public AvailableTask() {
+		DebugUtils.logMemoryInformation();		
 	}
 
 	public void performExecute() throws org.apache.tools.ant.BuildException {

Modified: incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/VersionAvailableTaskTest.java
==============================================================================
--- incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/VersionAvailableTaskTest.java
(original)
+++ incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/VersionAvailableTaskTest.java
Wed Jun  2 07:50:30 2004
@@ -16,6 +16,7 @@
 
 package org.apache.depot.version.ant.available;
 
+import org.apache.depot.common.util.debug.DebugUtils;
 import org.apache.tools.ant.BuildFileTest;
 import org.apache.tools.ant.Project;
 
@@ -31,6 +32,9 @@
 	}
 
 	public void setUp() {
+		
+		DebugUtils.logMemoryInformation();
+		
 		configureProject(
 				"src/test/java/org/apache/depot/version/ant/available/available.xml",
 				Project.MSG_DEBUG);

Modified: incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/available.xml
==============================================================================
--- incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/available.xml
(original)
+++ incubator/depot/trunk/version/src/test/java/org/apache/depot/version/ant/available/available.xml
Wed Jun  2 07:50:30 2004
@@ -19,10 +19,12 @@
 	
 	<target name="testExistence">
 		<version-available property="version.available" versionId="org.apache.depot.version"/>
+		<echo message="Available : ${version.available}"/>
 	</target>	
 		
 	<target name="testAbsence">
 		<version-available property="version.available" versionId="org.apache.bogus"/>
+		<echo message="Available : ${version.available}"/>
 	</target>
 		
 	<target name="testHigher">
@@ -31,6 +33,7 @@
 				major ="1" 
 				minor="2"/>
 		</version-available>
+		<echo message="Available : ${version.available}"/>
 	</target>
 	
 	<target name="test" depends="testExistence, testAbsence, testHigher" />

Mime
View raw message