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.3 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <!-- Start Attributes -->
  46. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  47. <tr><td>&nbsp;</td></tr>
  48. <tr><td bgcolor="#525D76">
  49. <font color="#ffffff" face="arial,helvetica.sanserif">
  50. <a name="attributes">
  51. <strong>Parameters</strong></a></font>
  52. </td></tr>
  53. <tr><td><blockquote>
  54. <table>
  55. <tr>
  56. <td bgcolor="#cccccc" valign="top" align="left">
  57. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  58. </td>
  59. <td bgcolor="#cccccc" valign="top" align="left">
  60. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  61. </td>
  62. <td bgcolor="#cccccc" valign="top" align="left">
  63. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  64. </td>
  65. </tr>
  66. <!-- Attribute -->
  67. <tr>
  68. <td bgcolor="#eeeeee" valign="top" align="left">
  69. <font color="#000000" size="-1" face="arial,helvetica,sanserif">class</font>
  70. </td>
  71. <td bgcolor="#eeeeee" valign="top" align="left">
  72. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  73. name the class to look for
  74. </font>
  75. </td>
  76. <td bgcolor="#eeeeee" valign="top" align="left">
  77. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  78. </td>
  79. </tr>
  80. <!-- Attribute -->
  81. <tr>
  82. <td bgcolor="#eeeeee" valign="top" align="left">
  83. <font color="#000000" size="-1" face="arial,helvetica,sanserif">classpath</font>
  84. </td>
  85. <td bgcolor="#eeeeee" valign="top" align="left">
  86. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  87. Set the classpath to be used for this compilation.
  88. </font>
  89. </td>
  90. <td bgcolor="#eeeeee" valign="top" align="left">
  91. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
  92. </td>
  93. </tr>
  94. <!-- Attribute -->
  95. <tr>
  96. <td bgcolor="#eeeeee" valign="top" align="left">
  97. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  98. </td>
  99. <td bgcolor="#eeeeee" valign="top" align="left">
  100. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  101. the property to fill with the URL of the resource or class
  102. </font>
  103. </td>
  104. <td bgcolor="#eeeeee" valign="top" align="left">
  105. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  106. </td>
  107. </tr>
  108. <!-- Attribute -->
  109. <tr>
  110. <td bgcolor="#eeeeee" valign="top" align="left">
  111. <font color="#000000" size="-1" face="arial,helvetica,sanserif">resource</font>
  112. </td>
  113. <td bgcolor="#eeeeee" valign="top" align="left">
  114. <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  115. name the resource to look for
  116. </font>
  117. </td>
  118. <td bgcolor="#eeeeee" valign="top" align="left">
  119. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  120. </td>
  121. </tr>
  122. </table>
  123. </blockquote></td></tr>
  124. </table>
  125. <!-- End Attributes -->
  126. <!-- Start Elements -->
  127. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  128. <tr><td>&nbsp;</td></tr>
  129. <tr><td bgcolor="#525D76">
  130. <font color="#ffffff" face="arial,helvetica.sanserif">
  131. <a name="elements">
  132. <strong>Parameters as nested elements</strong></a></font>
  133. </td></tr>
  134. <tr><td><blockquote>
  135. <!-- Start Element -->
  136. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  137. <tr><td>&nbsp;</td></tr>
  138. <tr><td bgcolor="#828DA6">
  139. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  140. <strong>classpath</strong> (org.apache.tools.ant.types.Path)</font>
  141. </td></tr>
  142. <tr><td><blockquote>
  143. Adds a path to the classpath.
  144. <short-description><![CDATA[Adds a path to the classpath.]]></short-description>
  145. <description>
  146. <![CDATA[Adds a path to the classpath.]]>
  147. </description>
  148. </blockquote></td></tr>
  149. </table>
  150. <!-- End Element -->
  151. </blockquote></td></tr>
  152. </table>
  153. <!-- End Elements -->
  154. </td>
  155. </tr>
  156. <!-- END RIGHT SIDE MAIN BODY -->
  157. <!-- FOOTER SEPARATOR -->
  158. <tr>
  159. <td>
  160. <hr noshade="" size="1"/>
  161. </td>
  162. </tr>
  163. <!-- PAGE FOOTER -->
  164. <tr>
  165. <td>
  166. <div align="center"><font color="#525D76" size="-1"><em>
  167. Copyright &#169; 2000-2003, Apache Software Foundation
  168. </em></font></div>
  169. </td>
  170. </tr>
  171. </table>
  172. </body>
  173. </html>