You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

length.html 2.2 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Length Task</title>
  5. </head>
  6. <body>
  7. <h2>Length</h2>
  8. <h3>Description</h3>
  9. <p>Display or set a property containing length information for
  10. a string, a file, or one or more nested filesets.</p>
  11. <h3>Parameters</h3>
  12. <table border="1" cellpadding="2" cellspacing="0">
  13. <tr>
  14. <td valign="top"><b>Attribute</b></td>
  15. <td valign="top"><b>Description</b></td>
  16. <td align="center" valign="top"><b>Required</b></td>
  17. </tr>
  18. <tr>
  19. <td valign="top">property</td>
  20. <td valign="top">The property to set. If omitted
  21. the length is written to the log.</td>
  22. <td valign="top" align="center">No</td>
  23. </tr>
  24. <tr>
  25. <td valign="top">file</td>
  26. <td valign="top">Single file whose length to report.</td>
  27. <td valign="top" align="center" rowspan="2">One of these,
  28. or one or more nested filesets</td>
  29. </tr>
  30. <tr>
  31. <td valign="top">string</td>
  32. <td valign="top">The string whose length to report.</td>
  33. </tr>
  34. <tr>
  35. <td valign="top">mode</td>
  36. <td valign="top">File length mode; when &quot;all&quot; the resulting
  37. value is the sum of all included files' lengths; when &quot;each&quot;
  38. the task outputs the absolute path and length of each included file,
  39. one per line.</td>
  40. <td valign="top" align="center">No; default is &quot;all&quot;</td>
  41. </tr>
  42. <tr>
  43. <td valign="top">trim</td>
  44. <td valign="top">Whether to trim when operating on a string.</td>
  45. <td valign="top" align="center">No; only valid when string is set</td>
  46. </tr>
  47. </table>
  48. <h3>Parameters specified as nested elements</h3>
  49. <h4>fileset</h4><p>You can include files via nested
  50. <a href="../CoreTypes/fileset.html">fileset</a>s.</p>
  51. <h3>Examples</h3>
  52. <pre>&lt;length string=&quot;foo&quot; property=&quot;length.foo&quot; /&gt;
  53. </pre>
  54. <p>Stores the length of the string &quot;foo&quot; in the property named
  55. <i>length.foo</i>.</p>
  56. <pre>&lt;length file=&quot;bar&quot; property=&quot;length.bar&quot; /&gt;
  57. </pre>
  58. <p>Stores the length of file &quot;bar&quot; in the property named
  59. <i>length.bar</i>.</p>
  60. <hr />
  61. <p align="center">Copyright &copy; 2005 The Apache Software Foundation.
  62. All rights Reserved.</p>
  63. </body>
  64. </html>