I always feel so pleased when my code compiles and I've always dreamed of the Final Fantasy VII victory theme or Zelda treasure chest theme playing along with the successful compilation.
I've only been programming for two weeks (unless you include my 8 years of HTML on Neopets). Please tell me what I need to do to make my dream come true.
Edit -- I know that many of you will probably think that this will become annoying after about three compiles, but trust me, it's fine. I've had Captain Falcon shout "YES" at me every time I've received a text for the past year and I still think it's hilarious.
I am not aware of a "native" way of having a music played after a successful build. However, if I really need to have that (you have to consider that after some work, it will be really annoying), I would consider the following ideas:
1: Trying to find a builder (Project properties > Builders
) that allows specific task after the compilation of a project;
2: Use Ant to compile your project. Add a task, for example sound that will play a different song regarding the result of the build:
<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>
3: Use an Continuous Integration server, such as Hudson (oops, Jenkins ;) ) and add a plugin to play a sound after a build.
Just a personal note: I think this can be a good idea to have a specific sound / music played after a failed build done by a IC server...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With