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