Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make it so that a fanfare plays when my code compiles in Eclipse (Java)?

Tags:

eclipse

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.

like image 805
Gary Oak Avatar asked Feb 05 '11 20:02

Gary Oak


1 Answers

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...

like image 94
Romain Linsolas Avatar answered Oct 16 '22 16:10

Romain Linsolas