Update of /cvsroot/nant/nant/doc/help/fundamentals
In directory 
sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27372/doc/help/fundamentals

Modified Files:
        expressions.html 
Log Message:
Added support for relational operators between version values. Use this newly 
introduced support to clean-up version checks in our framework configuration 
projects.
Mono's resgen(2) only supports /useSourcePath on Mono 1.2.4 and higher. Fixes 
bug #1653893.

Index: expressions.html
===================================================================
RCS file: /cvsroot/nant/nant/doc/help/fundamentals/expressions.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** expressions.html    28 Apr 2006 08:33:53 -0000      1.19
--- expressions.html    17 Feb 2007 07:54:04 -0000      1.20
***************
*** 87,90 ****
--- 87,101 ----
                  </div>
              </div>
+             <div style="margin-left: 20px;">
+                 4.6 <a href="#version-operators">Operators on Version 
Values</a>
+                 <div style="margin-left: 20px;">
+                     4.6.1 <a href="#op-version-equal">Equal</a><br />
+                     4.6.2 <a href="#op-version-inequal">Inequal</a><br />
+                     4.6.3 <a href="#op-version-greater-than">Greater 
than</a><br />
+                     4.6.4 <a href="#op-version-greater-than-or-equal">Greater 
than or equal</a><br />
+                     4.6.5 <a href="#op-version-less-than">Less than</a><br />
+                     4.6.6 <a href="#op-version-less-than-or-equal">Less than 
or equal</a><br />
+                 </div>
+             </div>
          </div>
          <h2><a id="introduction" />1 Introduction</h2>
***************
*** 235,238 ****
--- 246,253 ----
                      <td>represents a time interval.</td>
                  </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>represents a version number consisting of two to four 
components.</td>
+                 </tr>
              </table>
          </div>
***************
*** 1895,1898 ****
--- 1910,2127 ----
              </table>
          </div>
+         <h3><a id="version-operators" />4.6 Operators on Version Values</h3>
+         <p>The following operators are supported on version values:</p>
+         <ul>
+             <li>
+                 == operator
+             </li>
+             <li>
+                 != operator
+             </li>
+             <li>
+                 > operator
+             </li>
+             <li>
+                 >= operator
+             </li>
+             <li>
+                 &lt; operator
+             </li>
+             <li>
+                 &lt;= operator
+             </li>
+         </ul>
+         <h4><a id="op-version-equal" />4.6.1 Equal</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is the same 
as the 
+             value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') == 
version::parse('1.2')</code> evaluates 
+                         to <b>true</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
+         <h4><a id="op-version-inequal" />4.6.2 Inequal</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is not the 
same as 
+             the value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') != 
version::parse('1.3.1')</code> evaluates 
+                         to <b>true</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
+         <h4><a id="op-version-greather-than" />4.6.3 Greater than</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is greater 
than the 
+             value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') > 
version::parse('1.3.1')</code> evaluates 
+                         to <b>false</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
+         <h4><a id="op-version-greater-than-or-equal" />4.6.4 Greater than or 
equal</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is greater 
than or 
+             equal to the value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') >= 
version::parse('1.2')</code> evaluates 
+                         to <b>true</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
+         <h4><a id="op-version-less-than" />4.6.5 Less than</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is less than 
the 
+             value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') &lt; 
version::parse('1.3.1')</code> evaluates 
+                         to <b>true</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
+         <h4><a id="op-version-less-than-or-equal" />4.6.6 Less than or 
equal</h4>
+         <h5>Summary</h5>
+         <p>
+             Returns <b>true</b> if the value of the left operand is less than 
the 
+             value of the right operand.
+         </p>
+         <h5>Operands</h5>
+         <div class="table">
+             <table>
+                 <colgroup>
+                     <col />
+                     <col />
+                     <col />
+                 </colgroup>
+                 <tr>
+                     <th>
+                         Left Operand</th>
+                     <th>
+                         Right Operand</th>
+                     <th>
+                         Example</th>
+                 </tr>
+                 <tr>
+                     <td>version</td>
+                     <td>version</td>
+                     <td>
+                         <code>version::parse('1.2') &lt;= 
version::parse('1.2')</code> evaluates 
+                         to <b>true</b>
+                     </td>
+                 </tr>
+             </table>
+         </div>
      </body>
  </html>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
nant-commits mailing list
nant-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-commits

Reply via email to