2018-12-21 11:20:43 +01:00
|
|
|
<!DOCTYPE html>
|
2006-09-11 04:19:00 +00:00
|
|
|
<!--
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2018-12-21 11:20:43 +01:00
|
|
|
<html lang="en">
|
2001-08-09 11:03:39 +00:00
|
|
|
|
|
|
|
<head>
|
2005-04-29 18:58:16 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2002-02-03 22:00:42 +00:00
|
|
|
<title>Sequential Task</title>
|
2001-08-09 11:03:39 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h2>Sequential</h2>
|
|
|
|
<h3>Description</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p><code>Sequential</code> is a container task—it can contain other Apache Ant tasks. The
|
|
|
|
nested tasks are simply executed in sequence. Sequential's primary use is to support the sequential
|
|
|
|
execution of a subset of tasks within the <a href="parallel.html">parallel</a> task</p>
|
2001-08-09 11:03:39 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>The <code>sequential</code> task has no attributes and does not support any nested elements apart
|
|
|
|
from Ant tasks. Any valid Ant task may be embedded within the sequential task.</p>
|
2001-08-09 11:03:39 +00:00
|
|
|
|
|
|
|
<h3>Example</h3>
|
2018-05-15 09:51:58 +02:00
|
|
|
|
|
|
|
<p>This example shows how the <code>sequential</code> task is used to execute three tasks in
|
|
|
|
sequence, while another task is being executed in a separate thread.</p>
|
2001-08-09 11:03:39 +00:00
|
|
|
<pre>
|
|
|
|
<parallel>
|
2002-09-04 11:05:19 +00:00
|
|
|
<wlrun ... >
|
2001-08-09 11:03:39 +00:00
|
|
|
<sequential>
|
|
|
|
<sleep seconds="30"/>
|
2002-09-04 11:05:19 +00:00
|
|
|
<junit ... >
|
2001-08-09 11:03:39 +00:00
|
|
|
<wlstop/>
|
|
|
|
</sequential>
|
2018-02-28 07:58:59 +01:00
|
|
|
</parallel></pre>
|
2006-09-11 04:33:25 +00:00
|
|
|
|
2001-08-09 11:03:39 +00:00
|
|
|
</body>
|
|
|
|
</html>
|