Subversion Repositories bacoAlunos

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1777 jmachado 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
    &lt;forget&gt;
41
        &lt;exec executeable="${env.CATALINA_HOME}/bin/catalina.bat}"&gt;
42
            &lt;arg line="start -security" /&gt;
43
        &lt;/exec&gt;
44
    &lt;/forget&gt;
45
 
46
    &lt;waitfor maxwait="1" maxwaitunit="minute"
47
                checkevery="100" checkeveryunit="millisecond"&gt;
48
        &lt;http url="http://localhost:8080" /&gt;
49
    &lt;/waitfor&gt;
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 &copy; 2002-2003 Ant-Contrib Project. All
59
    rights Reserved.</p>
60
 
61
  </body>
62
</html>