Apache Ant TasksSplashSplashby Les Hughes ([email protected]) DescriptionThis task creates a splash screen. The splash screen is displayedfor the duration of the build and includes a handy progress bar aswell. Use in conjunction with the sound task to provide interestwhilst waiting for your builds to complete... Parameters Attribute | Description | Required | Default | imageurl | A URL pointing to an image to display. | No | antlogo.gif from the classpath | showduration | Initial period to pause the build to show the splash in milliseconds. | No | 5000 ms | progressregexp | Progress regular expression which is used to parse the output and dig out current progress. Exactly one group pattern must exists, and it represents the progress number (0-100) (i.e "Progress: (.*)%") since Apache Ant 1.8.0 | No | progress is increased every action and log output line | displaytext | display text presented in the splash window since Ant 1.8.0 | No | Building ... | Deprecated propertiesThe following properties can be used to configure the proxy settings to retrievean image from behind a firewall. However, the settings apply not just to thistask, but to all following tasks. Therefore they are now deprecated in preference to the <setproxy> task, that makes it clear to readers ofthe build exactly what is going on. useproxy | Use a proxy to access imgurl. Note: Only tested on JDK 1.2.2 and above | No | None | proxy | IP or hostname of the proxy server | No | None | port | Proxy portnumber | No | None | user | User to authenticate to the proxy as. | No | None | password | Proxy password | No | None | Examples<splash/>
Splash images/ant_logo_large.gif from the classpath. <splash imageurl="http://jakarta.apache.org/images/jakarta-logo.gif" useproxy="true" showduration="5000"/>
Splashes the jakarta logo, for an initial period of 5 seconds. Splash with controlled progress and nondefault text <target name="test_new_features"> <echo>New features</echo> <splash progressRegExp="Progress: (.*)%" showduration="0" displayText="Test text"/> <sleep seconds="1"/> <echo>Progress: 10%</echo> <sleep seconds="1"/> <echo>Progress: 20%</echo> <sleep seconds="1"/> <echo>Progress: 50%</echo> <sleep seconds="1"/> <echo>Progress: 70%</echo> <sleep seconds="1"/> <echo>Progress: 100%</echo> <sleep seconds="3"/> </target> |