notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1057 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1057 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks
- Date: Wed, 8 Feb 2006 16:02:08 +0100
Author: mcconnell
Date: 2006-02-08 16:02:06 +0100 (Wed, 08 Feb 2006)
New Revision: 1057
Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
Log:
add option for exanding memory allocation
Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
2006-02-08 14:14:52 UTC (rev 1056)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks/JUnitTestTask.java
2006-02-08 15:02:06 UTC (rev 1057)
@@ -44,6 +44,11 @@
public class JUnitTestTask extends GenericTask
{
/**
+ * Constant for lookup of mx value.
+ */
+ public static final String MX_KEY = "project.test.mx";
+
+ /**
* Constant test enabled key.
*/
public static final String TEST_ENABLED_KEY = "project.test.enabled";
@@ -254,6 +259,12 @@
junit.setHaltonfailure(
getBooleanProperty(
HALT_ON_FAILURE_KEY, HALT_ON_FAILURE_VALUE ) );
+
+ String mx = getContext().getProperty( MX_KEY );
+ if( null != mx )
+ {
+ junit.setMaxmemory( mx );
+ }
final File reports = getContext().getTargetReportsTestDirectory();
mkDir( reports );
- r1057 - trunk/main/depot/tools/builder/src/main/net/dpml/tools/tasks, mcconnell at BerliOS, 02/08/2006
Archive powered by MHonArc 2.6.24.