From 91d793f241c599ce33f64498e502e7e19eda7e6b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 19 Sep 2008 10:33:29 +0000 Subject: [PATCH] alternative scan task that uses resourcecount to isolate memory effect of pathconvert (and its result) from scanning git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@697038 13f79535-47bb-0310-9956-ffa450edef68 --- src/etc/performance/dirscanner.xml | 39 +++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/src/etc/performance/dirscanner.xml b/src/etc/performance/dirscanner.xml index a14a80c88..0af5d7559 100644 --- a/src/etc/performance/dirscanner.xml +++ b/src/etc/performance/dirscanner.xml @@ -32,9 +32,11 @@ Consider taking a nap if you run Ant 1.6.x or 1.7.0 against a "big" setup. - The tests use the pathconvert task whose performance should be - dominated by directory scanner, they would use ressourcecount if - that had been available in Ant 1.6.5. + If Ant 1.6.x is detected or the property ant16 has been specified + on the command line then the tests will use the pathconvert task + instead of resourcecount. So if you want to compare Ant 1.6.x + with later versions of you must specify ant16 on the command line + during your 1.[78].x tests. The tests will use the default settings of followsymlinks="true" and casesensitive="true" unless those values get overwritten by @@ -46,6 +48,10 @@ + + + + This is ${ant.version} @@ -154,6 +160,7 @@ public class DirscannerSetup extends Task { + @@ -168,13 +175,33 @@ public class DirscannerSetup extends Task { + + + + + + + + + + + + + + + + + @@ -185,6 +212,7 @@ public class DirscannerSetup extends Task { @@ -233,6 +261,7 @@ public class DirscannerSetup extends Task { @@ -243,6 +272,7 @@ public class DirscannerSetup extends Task { @@ -253,6 +283,7 @@ public class DirscannerSetup extends Task { @@ -281,5 +312,5 @@ public class DirscannerSetup extends Task { + depends="define-scan,matchall, roots, recursive-excludes, name-matches, many-patterns, many-roots"/>