|
10.2. Creating Splash ScreensThis task creates a splash screen displayed while the build is progressing. In Example 10-1, I'm using a splash screen that the Apache Jakarta Project makes available at http://jakarta.apache.org/images/jakarta-logo.gif, and I'm displaying it for five seconds. Example 10-1. Using a splash screen (ch10/splash/build.xml)<?xml version="1.0"?> <project default="main" basedir="."> <property name="cvs.dir" value="project" /> <target name="main" depends="splash"> <echo> Checking out and updating.... </echo> </target> <target name="splash"> <splash imageurl="http://jakarta.apache.org/images/jakarta-logo.gif" showduration="5000"/> </target> </project> You can see the Apache Jakarta logo that appears when this task executes in Figure 10-1. This task provides a nice touch if you're distributing your build files to a team. Figure 10-1. Sample build splash logoThe attributes of this task appear in Table 10-2.
|
|