ThoughtWorks Sydney Social Club (SSC) once again organised a very interesting event. We went to an AFL game at the Sydney Cricket Ground (SCG).
The game was Sydney Swans vs Fremantle. Of course we were supporting Sydney’s team Swans… But they lost… Even though the game was in Sydney and the stadium was 99% red and supporting them.
It was a great experience going to the SCG and catching up with some of my colleagues. These SSC events are perfect!
We have adapted on our project James Crisp’s cool idea about changing the color of the command when the build fails or passes… Now it works for maven
mvncool.bat file
@echo off
color 07
call mvn %*
IF ERRORLEVEL 1 goto RedBuild
IF ERRORLEVEL 0 goto GreenBuild
:RedBuild
color 4F
goto TheEnd
:GreenBuild
color 2F
:TheEnd
It’s quite similar to the one that Crisp posted, so thanks Crisp for the interesting and reusable bat file.
Some small things are different for maven though… Check them out.
Step by step to have it working on your maven project:
Download this file mvncool.bat (or copy it from the text box above)
Move mvncool.bat to either:
- the root of your project, where your root pom.xml is. You can also add this file to your version control so that everyone can use it.
- or any folder which is in your PATH. It could be the same folder where mvn.bat is: MAVEN_HOME/bin/.
From the root of your project, just from where you used to run your mvn you can from now on run mvncool instead. You can send the same parameters mvncool clean install for example and they will be sent through because of the %* on the bat file…
It took about a year and a half for this guy to create a fake, but well done, trailer of a Thundercats movie. He collected scenes from different movies and put some “make up” on the actors, I think that even Garfield has been used…
My friend Ricardo Jun sent me a link to this post about a student who was suspended for calling his teacher the “EJB of school” and I thought that some drawing would make it look even better.