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 7.4 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Language" content="en-us">
  18. <title>Whichresource
  19. Task</title>
  20. </head>
  21. <body bgcolor="#ffffff" text="#000000" link="#525D76"
  22. alink="#525D76" vlink="#525D76">
  23. <table border="0" width="100%" cellspacing="4">
  24. <!-- PAGE HEADER -->
  25. <tr>
  26. <td>
  27. <table border="0" width="100%"><tr>
  28. <td valign="bottom">
  29. <font size="+3" face="arial,helvetica,sanserif"><strong>Whichresource
  30. Task</strong></font>
  31. <br><font face="arial,helvetica,sanserif">Find a class or resource on the supplied classpath, or the system classpath if none is supplied.</font>
  32. </td>
  33. <td>
  34. <!-- PROJECT LOGO -->
  35. <a href="http://ant.apache.org/">
  36. <img src="../../images/ant_logo_large.gif" align="right" alt="Apache Ant" border="0">
  37. </a>
  38. </td>
  39. </tr></table>
  40. </td>
  41. </tr>
  42. <!-- START RIGHT SIDE MAIN BODY -->
  43. <tr>
  44. <td valign="top" align="left">
  45. <!-- Applying task/long-description -->
  46. <!-- Start Description -->
  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="description">
  52. <strong>Description</strong></a></font>
  53. </td></tr>
  54. <tr><td><blockquote>
  55. 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>
  56. </blockquote></td></tr>
  57. </table>
  58. <!-- End Description -->
  59. <!-- Ignore -->
  60. <!-- Start Attributes -->
  61. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  62. <tr><td>&nbsp;</td></tr>
  63. <tr><td bgcolor="#525D76">
  64. <font color="#ffffff" face="arial,helvetica.sanserif">
  65. <a name="attributes">
  66. <strong>Parameters</strong></a></font>
  67. </td></tr>
  68. <tr><td><blockquote>
  69. <table>
  70. <tr>
  71. <td bgcolor="#cccccc" valign="top" align="left">
  72. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Attribute</b></font>
  73. </td>
  74. <td bgcolor="#cccccc" valign="top" align="left">
  75. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Description</b></font>
  76. </td>
  77. <td bgcolor="#cccccc" valign="top" align="left">
  78. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Type</b></font>
  79. </td>
  80. <td bgcolor="#cccccc" valign="top" align="left">
  81. <font color="#000000" size="-1" face="arial,helvetica,sanserif"><b>Requirement</b></font>
  82. </td>
  83. </tr>
  84. <!-- Attribute Group -->
  85. <!-- Attribute -->
  86. <tr>
  87. <td bgcolor="#eeeeee" valign="top" align="left">
  88. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  89. </td>
  90. <td bgcolor="#eeeeee" valign="top" align="left">
  91. <font color="#000000" size="-1" face="arial,helvetica,sanserif">the property to fill with the URL of the resource or class</font>
  92. </td>
  93. <td bgcolor="#eeeeee" valign="top" align="left">
  94. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  95. </td>
  96. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  97. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Required</font>
  98. </td>
  99. </tr>
  100. <!-- Attribute Group -->
  101. <!-- Attribute -->
  102. <tr>
  103. <td bgcolor="#eeeeee" valign="top" align="left">
  104. <font color="#000000" size="-1" face="arial,helvetica,sanserif">class</font>
  105. </td>
  106. <td bgcolor="#eeeeee" valign="top" align="left">
  107. <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the class to look for</font>
  108. </td>
  109. <td bgcolor="#eeeeee" valign="top" align="left">
  110. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  111. </td>
  112. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="2">
  113. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Exactly one of these two</font>
  114. </td>
  115. </tr>
  116. <!-- Attribute -->
  117. <tr>
  118. <td bgcolor="#eeeeee" valign="top" align="left">
  119. <font color="#000000" size="-1" face="arial,helvetica,sanserif">resource</font>
  120. </td>
  121. <td bgcolor="#eeeeee" valign="top" align="left">
  122. <font color="#000000" size="-1" face="arial,helvetica,sanserif">name the resource to look for</font>
  123. </td>
  124. <td bgcolor="#eeeeee" valign="top" align="left">
  125. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  126. </td>
  127. </tr>
  128. <!-- Attribute Group -->
  129. <!-- Attribute -->
  130. <tr>
  131. <td bgcolor="#eeeeee" valign="top" align="left">
  132. <font color="#000000" size="-1" face="arial,helvetica,sanserif">classpath</font>
  133. </td>
  134. <td bgcolor="#eeeeee" valign="top" align="left">
  135. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Set the classpath to be used for this compilation.</font>
  136. </td>
  137. <td bgcolor="#eeeeee" valign="top" align="left">
  138. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Path</font>
  139. </td>
  140. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="1">
  141. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  142. </td>
  143. </tr>
  144. </table>
  145. </blockquote></td></tr>
  146. </table>
  147. <!-- End Attributes -->
  148. <!-- Start Elements -->
  149. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  150. <tr><td>&nbsp;</td></tr>
  151. <tr><td bgcolor="#525D76">
  152. <font color="#ffffff" face="arial,helvetica.sanserif">
  153. <a name="elements">
  154. <strong>Parameters as nested elements</strong></a></font>
  155. </td></tr>
  156. <tr><td><blockquote>
  157. <!-- Start Element -->
  158. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  159. <tr><td>&nbsp;</td></tr>
  160. <tr><td bgcolor="#828DA6">
  161. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  162. <strong>classpath</strong> (org.apache.tools.ant.types.Path)</font>
  163. </td></tr>
  164. <tr><td><blockquote>
  165. Adds a path to the classpath.
  166. <!-- Ignore -->
  167. <!-- Ignore -->
  168. </blockquote></td></tr>
  169. </table>
  170. <!-- End Element -->
  171. </blockquote></td></tr>
  172. </table>
  173. <!-- End Elements -->
  174. </td>
  175. </tr>
  176. <!-- END RIGHT SIDE MAIN BODY -->
  177. </table>
  178. </body>
  179. </html>