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.

whichresource.html 6.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. <title>Whichresource
  5. Task</title>
  6. </head>
  7. <body bgcolor="#ffffff" text="#000000" link="#525D76"
  8. alink="#525D76" vlink="#525D76">
  9. <table border="0" width="100%" cellspacing="4">
  10. <!-- PAGE HEADER -->
  11. <tr>
  12. <td>
  13. <table border="0" width="100%"><tr>
  14. <td valign="bottom">
  15. <font size="+3" face="arial,helvetica,sanserif"><strong>Whichresource
  16. Task</strong></font>
  17. <br><font face="arial,helvetica,sanserif">Find a class or resource on the supplied classpath, or the system classpath if none is supplied.</font>
  18. </td>
  19. <td>
  20. <!-- PROJECT LOGO -->
  21. <a href="http://ant.apache.org/">
  22. <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0"/>
  23. </a>
  24. </td>
  25. </tr></table>
  26. </td>
  27. </tr>
  28. <!-- START RIGHT SIDE MAIN BODY -->
  29. <tr>
  30. <td valign="top" align="left">
  31. <!-- Applying task/long-description -->
  32. <!-- Start Description -->
  33. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  34. <tr><td>&nbsp;</td></tr>
  35. <tr><td bgcolor="#525D76">
  36. <font color="#ffffff" face="arial,helvetica.sanserif">
  37. <a name="description">
  38. <strong>Description</strong></a></font>
  39. </td></tr>
  40. <tr><td><blockquote>
  41. Find a class or resource on the supplied classpath, or the system classpath if none is supplied. The named property is set if the item can be found. For example <pre> &lt;whichresource resource="/log4j.properties" property="log4j.url" &gt; </pre>
  42. </blockquote></td></tr>
  43. </table>
  44. <!-- End Description -->
  45. <!-- Ignore -->
  46. <!-- Start Attributes -->
  47. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  48. <tr><td>&nbsp;</td></tr>
  49. <tr><td bgcolor="#525D76">
  50. <font color="#ffffff" face="arial,helvetica.sanserif">
  51. <a name="attributes">
  52. <strong>Parameters</strong></a></font>
  53. </td></tr>
  54. <tr><td><blockquote>
  55. <table>
  56. <tr>
  57. <td bgcolor="#cccccc" valign="top" align="left">
  58. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  59. </td>
  60. <td bgcolor="#cccccc" valign="top" align="left">
  61. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  62. </td>
  63. <td bgcolor="#cccccc" valign="top" align="left">
  64. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  65. </td>
  66. <td bgcolor="#cccccc" valign="top" align="left">
  67. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  68. </td>
  69. </tr>
  70. <!-- Attribute Group -->
  71. <!-- Attribute -->
  72. <tr>
  73. <td bgcolor="#eeeeee" valign="top" align="left">
  74. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  75. </td>
  76. <td bgcolor="#eeeeee" valign="top" align="left">
  77. <font color="#000000" size="-1" face="arial,helvetica,sanserif">the property to fill with the URL of the resource or class</font>
  78. </td>
  79. <td bgcolor="#eeeeee" valign="top" align="left">
  80. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  81. </td>
  82. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  83. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Required</font>
  84. </td>
  85. </tr>
  86. <!-- Attribute Group -->
  87. <!-- Attribute -->
  88. <tr>
  89. <td bgcolor="#eeeeee" valign="top" align="left">
  90. <font color="#000000" size="-1" face="arial,helvetica,sanserif">class</font>
  91. </td>
  92. <td bgcolor="#eeeeee" valign="top" align="left">
  93. <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the class to look for</font>
  94. </td>
  95. <td bgcolor="#eeeeee" valign="top" align="left">
  96. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  97. </td>
  98. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="2">
  99. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Exactly one of these two</font>
  100. </td>
  101. </tr>
  102. <!-- Attribute -->
  103. <tr>
  104. <td bgcolor="#eeeeee" valign="top" align="left">
  105. <font color="#000000" size="-1" face="arial,helvetica,sanserif">resource</font>
  106. </td>
  107. <td bgcolor="#eeeeee" valign="top" align="left">
  108. <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the resource to look for</font>
  109. </td>
  110. <td bgcolor="#eeeeee" valign="top" align="left">
  111. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  112. </td>
  113. </tr>
  114. <!-- Attribute Group -->
  115. <!-- Attribute -->
  116. <tr>
  117. <td bgcolor="#eeeeee" valign="top" align="left">
  118. <font color="#000000" size="-1" face="arial,helvetica,sanserif">classpath</font>
  119. </td>
  120. <td bgcolor="#eeeeee" valign="top" align="left">
  121. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the classpath to be used for this compilation.</font>
  122. </td>
  123. <td bgcolor="#eeeeee" valign="top" align="left">
  124. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
  125. </td>
  126. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  127. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  128. </td>
  129. </tr>
  130. </table>
  131. </blockquote></td></tr>
  132. </table>
  133. <!-- End Attributes -->
  134. <!-- Start Elements -->
  135. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  136. <tr><td>&nbsp;</td></tr>
  137. <tr><td bgcolor="#525D76">
  138. <font color="#ffffff" face="arial,helvetica.sanserif">
  139. <a name="elements">
  140. <strong>Parameters as nested elements</strong></a></font>
  141. </td></tr>
  142. <tr><td><blockquote>
  143. <!-- Start Element -->
  144. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  145. <tr><td>&nbsp;</td></tr>
  146. <tr><td bgcolor="#828DA6">
  147. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  148. <strong>classpath</strong> (org.apache.tools.ant.types.Path)</font>
  149. </td></tr>
  150. <tr><td><blockquote>
  151. Adds a path to the classpath.
  152. <!-- Ignore -->
  153. <!-- Ignore -->
  154. </blockquote></td></tr>
  155. </table>
  156. <!-- End Element -->
  157. </blockquote></td></tr>
  158. </table>
  159. <!-- End Elements -->
  160. </td>
  161. </tr>
  162. <!-- END RIGHT SIDE MAIN BODY -->
  163. <!-- FOOTER SEPARATOR -->
  164. <tr>
  165. <td>
  166. <hr noshade="" size="1"/>
  167. </td>
  168. </tr>
  169. <!-- PAGE FOOTER -->
  170. <tr>
  171. <td>
  172. <div align="center"><font color="#525D76" size="-1"><em>
  173. Copyright &#169; 2000-2003, Apache Software Foundation
  174. </em></font></div>
  175. </td>
  176. </tr>
  177. </table>
  178. </body>
  179. </html>