From f6006c564838d6f836ab31c44646b10b4e190aa5 Mon Sep 17 00:00:00 2001 From: Daniel Ferrin Date: Wed, 19 Feb 2003 05:11:34 +0000 Subject: [PATCH] Improve reliability if ant parallel task tests docuemnt new attrutes to parallel task git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274131 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/parallel.html | 70 +++++++++++ src/etc/testcases/taskdefs/parallel.xml | 112 +++++++++--------- .../tools/ant/taskdefs/ParallelTest.java | 54 ++++++++- 3 files changed, 173 insertions(+), 63 deletions(-) diff --git a/docs/manual/CoreTasks/parallel.html b/docs/manual/CoreTasks/parallel.html index aec859f56..738132565 100644 --- a/docs/manual/CoreTasks/parallel.html +++ b/docs/manual/CoreTasks/parallel.html @@ -11,6 +11,31 @@

Description

Parallel is a container task - it can contain other Ant tasks. Each nested task within the parallel task will be executed in its own thread.

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
threadCountMaximum numbers of thread to use.No
threadsPerProcessorMaximum number of threads to use per available processor +(Requires JDK 1.4)No, defers to threadCount
pollIntervalMaximum number of milliseconds to wait for before checking +when waiting for available threads.No, default is 1000

Parallel tasks have a number of uses in an Ant build file including: