Changeset 109 for branches/2.2/docs

Show
Ignore:
Timestamp:
08/11/06 12:30:06 (2 years ago)
Author:
rob
Message:

Added documentation for using the validArgs attribute with InputTask

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/docs/phing_guide/book/chapters/appendixes/AppendixB-CoreTasks.html

    r108 r109  
    926926  on input from the console (or other Reader).</p> 
    927927<h3>Example</h3> 
    928 <pre>&lt;echo&gt;HTML pages installing to: ${documentRoot}&lt;/echo&gt; 
     928<pre> 
     929&lt;!-- Getting string input --&gt; 
     930&lt;echo&gt;HTML pages installing to: ${documentRoot}&lt;/echo&gt; 
    929931&lt;echo&gt;PHP classes installing to: ${servletDirectory}&lt;/echo&gt; 
    930932 
     
    934936 
    935937&lt;echo&gt;HTML pages installed to ${documentRoot}&lt;/echo&gt; 
    936 &lt;echo&gt;PHP classes installed to ${servletDirectory}&lt;/echo&gt;</pre> 
     938&lt;echo&gt;PHP classes installed to ${servletDirectory}&lt;/echo&gt; 
     939 
     940&lt;!-- Having the user choose from a set of valid choices --&gt; 
     941&lt;echo&gt;Choose a valid option:&lt;/echo&gt; 
     942 
     943&lt;input propertyname=&quot;optionsChoice&quot; validargs=&quot;foo,bar,bob&quot;&gt; 
     944  Which item would you like to use 
     945&lt;/input&gt; 
     946</pre> 
    937947<h3>Attributes</h3> 
    938948<table> 
     
    972982      <td>String</td> 
    973983      <td> The prompt character to follow prompt text.</td> 
     984      <td>n/a</td> 
     985      <td>No</td> 
     986    </tr> 
     987    <tr> 
     988      <td>validArgs</td> 
     989      <td>String</td> 
     990      <td>Comma-separated list of valid choices the user must supply. If used, one of these options must be chosen.</td> 
    974991      <td>n/a</td> 
    975992      <td>No</td>