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.

makeurl.html 8.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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>Makeurl
  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>Makeurl
  30. Task</strong></font>
  31. <br><font face="arial,helvetica,sanserif">This task takes one or more filenames and turns them into URLs, which it then assigns to a property.</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. This task takes one or more filenames and turns them into URLs, which it then assigns to a property. Useful when setting up RMI codebases. Nested filesets are supported; if present, these are turned into the url with the given separator between them (default = " "). <p/> <p>Example</p> <pre> &lt;makeurl file="${user.home}/.m2/repository" property="m2.repository.url" /&gt; </pre> Sets the property <code>m2.repository.url</code> to the file: URL of the local Maven2 repository. <pre> &lt;makeurl property="codebase"&gt; &lt;fileset dir="lib includes="*.jar"/&gt; &lt;/makeurl> </pre> Set the property <code>codebase</code> to the three URLs of the files provided as nested elements.
  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 Group -->
  86. <!-- Attribute -->
  87. <tr>
  88. <td bgcolor="#eeeeee" valign="top" align="left">
  89. <font color="#000000" size="-1" face="arial,helvetica,sanserif">file</font>
  90. </td>
  91. <td bgcolor="#eeeeee" valign="top" align="left">
  92. <font color="#000000" size="-1" face="arial,helvetica,sanserif">the name of a file to be converted into a URL</font>
  93. </td>
  94. <td bgcolor="#eeeeee" valign="top" align="left">
  95. <font color="#000000" size="-1" face="arial,helvetica,sanserif">File</font>
  96. </td>
  97. <td bgcolor="#eeeeee" valign="top" align="left" rowspan="4">
  98. <font color="#000000" size="-1" face="arial,helvetica,sanserif">Optional</font>
  99. </td>
  100. </tr>
  101. <!-- Attribute -->
  102. <tr>
  103. <td bgcolor="#eeeeee" valign="top" align="left">
  104. <font color="#000000" size="-1" face="arial,helvetica,sanserif">property</font>
  105. </td>
  106. <td bgcolor="#eeeeee" valign="top" align="left">
  107. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the name of a property to fill with the URL</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. </tr>
  113. <!-- Attribute -->
  114. <tr>
  115. <td bgcolor="#eeeeee" valign="top" align="left">
  116. <font color="#000000" size="-1" face="arial,helvetica,sanserif">separator</font>
  117. </td>
  118. <td bgcolor="#eeeeee" valign="top" align="left">
  119. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set the separator for the multi-url option.</font>
  120. </td>
  121. <td bgcolor="#eeeeee" valign="top" align="left">
  122. <font color="#000000" size="-1" face="arial,helvetica,sanserif">String</font>
  123. </td>
  124. </tr>
  125. <!-- Attribute -->
  126. <tr>
  127. <td bgcolor="#eeeeee" valign="top" align="left">
  128. <font color="#000000" size="-1" face="arial,helvetica,sanserif">validate</font>
  129. </td>
  130. <td bgcolor="#eeeeee" valign="top" align="left">
  131. <font color="#000000" size="-1" face="arial,helvetica,sanserif">set this flag to trigger validation that every named file exists. Optional: default=true</font>
  132. </td>
  133. <td bgcolor="#eeeeee" valign="top" align="left">
  134. <font color="#000000" size="-1" face="arial,helvetica,sanserif">boolean</font>
  135. </td>
  136. </tr>
  137. </table>
  138. </blockquote></td></tr>
  139. </table>
  140. <!-- End Attributes -->
  141. <!-- Start Elements -->
  142. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  143. <tr><td>&nbsp;</td></tr>
  144. <tr><td bgcolor="#525D76">
  145. <font color="#ffffff" face="arial,helvetica.sanserif">
  146. <a name="elements">
  147. <strong>Parameters as nested elements</strong></a></font>
  148. </td></tr>
  149. <tr><td><blockquote>
  150. <!-- Start Element -->
  151. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  152. <tr><td>&nbsp;</td></tr>
  153. <tr><td bgcolor="#828DA6">
  154. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  155. <strong>fileset</strong> (org.apache.tools.ant.types.FileSet)</font>
  156. </td></tr>
  157. <tr><td><blockquote>
  158. a fileset of jar files to include in the URL, each separated by the separator
  159. <!-- Ignore -->
  160. <!-- Ignore -->
  161. </blockquote></td></tr>
  162. </table>
  163. <!-- End Element -->
  164. <!-- Start Element -->
  165. <table border="0" cellspacing="0" cellpadding="2" width="100%">
  166. <tr><td>&nbsp;</td></tr>
  167. <tr><td bgcolor="#828DA6">
  168. <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
  169. <strong>path</strong> (org.apache.tools.ant.types.Path)</font>
  170. </td></tr>
  171. <tr><td><blockquote>
  172. add a path to the URL. All elements in the path will be converted to individual URL entries
  173. <!-- Ignore -->
  174. <!-- Ignore -->
  175. </blockquote></td></tr>
  176. </table>
  177. <!-- End Element -->
  178. </blockquote></td></tr>
  179. </table>
  180. <!-- End Elements -->
  181. </td>
  182. </tr>
  183. <!-- END RIGHT SIDE MAIN BODY -->
  184. </table>
  185. </body>
  186. </html>