ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ward Van Looy <>
Subject RE: sound task - either not doing anything or infinitely looping
Date Sun, 09 Nov 2008 12:07:40 GMT

It seems my samples did not get through; it's probably obvious but my first attempt stripped

     success source="good.wav"
     fail    source="good.wav"

which yielded no sounds at all; other samples

     success source="good.wav" duration="1"
     fail    source="good.wav" duration="1000"

which caused the infinite loops

> From:
> To:
> Subject: sound task - either not doing anything or infinitely looping
> Date: Sun, 9 Nov 2008 12:59:39 +0100
> I'm getting what I think is very strange behaviour from the sound task. As I understand
it, this is supposed to play sounds at the end of a build, depending on whether the build
failed or not.
> My first attempt came down to simply this:
> This results in absolutely nothing being played, regardless of build success or failure.
I am positive that the files are in the correct location and that there is nothing out of
the ordinary with them.
> I then started playing around with the attributes, and found that if I set the duration
to anything other than "0", for example:
> This results in the sound being infinitely repeated, keeping the Ant process from ever
terminating until I kill it.
> The value of "duration" doesn't have any influence on the behaviour; except when it's
set to 0 in which case again nothing at all happens (as expected). The value of "loops" does
not have any impact at all.
> I used several different wav files and they all yield the same result.
> I tried the sound task in all possible locations (inside an "init" target on which everything
else depends, inside its own target, at top level), and the result is always the same.
> Running with -verbose and -debug didn't yield anything relevant.
> For completeness' sake, I'm running on Windows XP SP2, with jdk1.6.0_10 and ant-1.7.1.
> Summing up, without optional attributes nothing happens; with any strictly positive duration
it loops forever. As far as I could google and search this and other mailing lists, no-one
else has ever reported this problem. I'm at a complete loss, I think for the first time ever...
on what seemed like a simple and fun icing on the cake of finishing up a script, and d'oh!
> Thanks in advance for any tips,
> Best regards,
> Ward
> _________________________________________________________________
> Connect to the next generation of MSN Messenger 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

News, entertainment and everything you care about at Get it now!
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message