From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/sound.html | 123 +++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/sound.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/sound.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sound.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sound.html new file mode 100644 index 00000000..1095f80c --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/sound.html @@ -0,0 +1,123 @@ + + + + + + +Sound Task + + + + +

Sound

+

Description

+

Plays 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 +<sound> task will randomly select a file to play. +Note: At this point, the random selection is based on all the files +in the directory, not just those ending in appropriate suffixes +for sound-files, so be sure you only have sound-files in the +directory you specify.

+

More precisely <sound> registers a hook that is +triggered when the build finishes. Therefore you have to place this +task as top level or inside a target which is always executed.

+

+Unless you are running on Java 1.3 or later, you need the Java Media Framework +on the classpath (javax.sound). +

+ + +

Nested Elements

+

success

+

Specifies the sound to be played if the build succeeded.

+

fail

+

Specifies the sound to be played if the build failed.

+ +

Nested Element Parameters

+

+The following attributes may be used on the <success> +and <fail> elements:

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
sourcethe path to a sound-file directory, or the name of a +specific sound-file, to be played. If this file does not exist, an error message +will be logged. + Yes
loopsthe number of extra times to play the sound-file; + default is 0. + No
durationthe amount of time (in milliseconds) to play + the sound-file. + No
+ +

Examples

+
+
+<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>
+
+
+plays the 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. +
+
+<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>
+
+
+randomly selects a sound-file to play when the build succeeds or fails. + + + + + + -- cgit 1.2.3-korg