1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Ant-contrib Tasks: Forget</title>
</head>
<body>
<h1>Forget</h1>
<p>The Forget task will execute a set of tasks sequentially as a background
thread. Once the thread is started, control is returned to the calling
target. This is useful in being able to kick off a background server process,
such as a webserver. This allows you to not have to use the <code>parallel</code>
task to start server processes.</p>
<h2>Parameters</h2>
<table border="1" cellpadding="2" cellspacing="0">
<tr>
<th>Attribute</th>
<th>Description</th>
<th>Required</th>
</tr>
<tr>
<td valign="top">daemon</td>
<td valign="top">Should the created thread be a daemon thread. That is,
should the ANT program be allowed to exit if the thread is still
running.</td>
<td align="center" valign="top">No. Defaults to true.</td>
</tr>
</table>
<h2>Example</h2>
The following code
<pre>
<code>
<forget>
<exec executeable="${env.CATALINA_HOME}/bin/catalina.bat}">
<arg line="start -security" />
</exec>
</forget>
<waitfor maxwait="1" maxwaitunit="minute"
checkevery="100" checkeveryunit="millisecond">
<http url="http://localhost:8080" />
</waitfor>
</code>
</pre>
Would start the Tomcat webserver as a background process, then waiting
for the server to become available.
<hr>
<p align="center">Copyright © 2002-2003 Ant-Contrib Project. All
rights Reserved.</p>
</body>
</html>
|