|
10.1. Using SoundThe sound task plays a sound-file at the end of the build according to whether the build failed or succeeded. You can specify one sound file to play, or if you specify a directory, the sound task will randomly select a sound file to play.
The sound task can contain success and fail elements. The success element specifies the sound you want played if the build succeeds and failures the sound if it fails. Here's an example where the build file specifies the sounds to play depending on if the build succeeded or failed: <target name="sounds"> <sound> <success source="${user.home}/sounds/success.wav"/> <fail source="${user.home}/sounds/noway.wav"/> </sound> </target> These success and failure elements support the attributes you see in Table 10-1.
|
|