|
SoundDescriptionPlays a sound-file at the end of the build, according to whether
the build failed or succeeded. You can specify either a specific
sound-file to play, or, if a directory is specified, the
Unless you are running on Java 1.3 or later, you need the Java Media Framework on the classpath (javax.sound). Nested ElementssuccessSpecifies the sound to be played if the build succeeded. failSpecifies the sound to be played if the build failed. Nested Element Parameters
The following attributes may be used on the
Examplesplays the<target name="fun" if="fun" unless="fun.done"> <sound> <success source="${user.home}/sounds/bell.wav"/> <fail source="${user.home}/sounds/ohno.wav" loops="2"/> </sound> <property name="fun.done" value="true"/> </target> bell.wav sound-file if the build succeeded, or
the ohno.wav sound-file if the build failed, three times,
if the fun property is set to true .
If the target
is a dependency of an "initialization" target that other
targets depend on, the
fun.done property prevents the target from being executed
more than once.
randomly selects a sound-file to play when the build succeeds or fails.<target name="fun" if="fun" unless="fun.done"> <sound> <success source="//intranet/sounds/success"/> <fail source="//intranet/sounds/failure"/> </sound> <property name="fun.done" value="true"/> </target> Copyright © 2001-2002 Apache Software Foundation. All rights Reserved. |