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.

splash.html 5.6 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  19. <title>Ant User Manual</title>
  20. </head>
  21. <body>
  22. <h2><a name="Splash">Splash</a></h2>
  23. <p>by Les Hughes (leslie.hughes@rubus.com)
  24. <h3>Description</h3>
  25. <p>This task creates a splash screen. The splash screen is displayed
  26. for the duration of the build and includes a handy progress bar as
  27. well. Use in conjunction with the sound task to provide interest
  28. whilst waiting for your builds to complete...</p>
  29. <h3>Parameters</h3>
  30. <table border="1" cellpadding="2" cellspacing="0">
  31. <tr>
  32. <td valign="top"><b>Attribute</b></td>
  33. <td valign="top"><b>Description</b></td>
  34. <td align="center" valign="top"><b>Required</b></td>
  35. <td align="center" valign="top"><b>Default</b></td>
  36. </tr>
  37. <tr>
  38. <td valign="top">imageurl</td>
  39. <td valign="top">A URL pointing to an image to display.</td>
  40. <td valign="top" align="center">No</td>
  41. <td valign="top" align="center">antlogo.gif from the classpath</td>
  42. </tr>
  43. <tr>
  44. <td valign="top">showduration</td>
  45. <td valign="top">Initial period to pause the build to show the
  46. splash in milliseconds.</td>
  47. <td valign="top" align="center">No</td>
  48. <td valign="top" align="center">5000 ms</td>
  49. </tr>
  50. <tr>
  51. <td valign="top">progressregexp</td>
  52. <td valign="top">Progress regular expression which is used to
  53. parse the output and dig out current progress. Exactly one group
  54. pattern must exists, and it represents the progress number (0-100)
  55. (i.e "Progress: (.*)%")<br/>
  56. <em>since Ant 1.8.0</em></td>
  57. <td valign="top" align="center">No</td>
  58. <td valign="top" align="center">progress is increased every action
  59. and log output line</td>
  60. </tr>
  61. <tr>
  62. <td valign="top">displaytext</td>
  63. <td valign="top">display text presented in the splash window<br/>
  64. <em>since Ant 1.8.0</em></td>
  65. <td valign="top" align="center">No</td>
  66. <td valign="top" align="center">Building ...</td>
  67. </tr>
  68. </table>
  69. <h3>Deprecated properties</h3>
  70. The following properties can be used to configure the proxy settings to retrieve
  71. an image from behind a firewall. However, the settings apply not just to this
  72. task, but to all following tasks. Therefore they are now mostly deprecated in
  73. preference to the <code>&lt;setproxy&gt;</code> task, that makes it clear to readers of
  74. the build exactly what is going on. We say mostly as this task's support
  75. includes proxy authentication, so you may still need to use its
  76. proxy attributes.
  77. <table border="1" cellpadding="2" cellspacing="0">
  78. <tr>
  79. <td valign="top">useproxy</td>
  80. <td valign="top">Use a proxy to access imgurl. Note: Only tested
  81. on JDK 1.2.2 and above</td>
  82. <td valign="top" align="center">No</td>
  83. <td valign="top" align="center">None</td>
  84. </tr>
  85. <tr>
  86. <td valign="top">proxy</td>
  87. <td valign="top">IP or hostname of the proxy server</td>
  88. <td valign="top" align="center">No</td>
  89. <td valign="top" align="center">None</td>
  90. </tr>
  91. <tr>
  92. <td valign="top">port</td>
  93. <td valign="top">Proxy portnumber</td>
  94. <td valign="top" align="center">No</td>
  95. <td valign="top" align="center">None</td>
  96. </tr>
  97. <tr>
  98. <td valign="top">user</td>
  99. <td valign="top">User to authenticate to the proxy as.</td>
  100. <td valign="top" align="center">No</td>
  101. <td valign="top" align="center">None</td>
  102. </tr>
  103. <tr>
  104. <td valign="top">password</td>
  105. <td valign="top">Proxy password</td>
  106. <td valign="top" align="center">No</td>
  107. <td valign="top" align="center">None</td>
  108. </tr>
  109. </table>
  110. <h3>Examples</h3>
  111. <blockquote><pre>
  112. &lt;splash/&gt;
  113. </pre></blockquote>
  114. <p>Splash <code>images/ant_logo_large.gif</code> from the classpath.</p>
  115. <blockquote><pre>
  116. &lt;splash imageurl=&quot;http://jakarta.apache.org/images/jakarta-logo.gif&quot;
  117. useproxy=&quot;true&quot;
  118. showduration=&quot;5000&quot;/&gt;
  119. </pre></blockquote>
  120. <p>Splashes the jakarta logo, for an initial period of 5 seconds.</p>
  121. <p>Splash with controlled progress and nondefault text</p>
  122. <blockquote><pre>
  123. &lt;target name="test_new_features"&gt;
  124. &lt;echo&gt;New features&lt;/echo&gt;
  125. &lt;splash progressRegExp="Progress: (.*)%" showduration="0" displayText="Test text"/&gt;
  126. &lt;sleep seconds="1"/&gt;
  127. &lt;echo&gt;Progress: 10%&lt;/echo&gt;
  128. &lt;sleep seconds="1"/&gt;
  129. &lt;echo&gt;Progress: 20%&lt;/echo&gt;
  130. &lt;sleep seconds="1"/&gt;
  131. &lt;echo&gt;Progress: 50%&lt;/echo&gt;
  132. &lt;sleep seconds="1"/&gt;
  133. &lt;echo&gt;Progress: 70%&lt;/echo&gt;
  134. &lt;sleep seconds="1"/&gt;
  135. &lt;echo&gt;Progress: 100%&lt;/echo&gt;
  136. &lt;sleep seconds="3"/&gt;
  137. &lt;/target&gt;
  138. </pre></blockquote>
  139. </body>
  140. </html>