Archiv
created new yubnub command: findjar
Podcast for Software Engineers
I recently started to listen to podcast and the variety of podcasts is really big.
I discovered http://www.se-radio.net. This site produces
podcasts for software engineers. I really enjoy the possibility to learn while traveling
Today, I started listening to the parts of concurrency. Did you know there is a bug classification called Heisenberg-Bugs? A Heisenberg-Bug is Mehr…
groovy script beautified
Fixed ‘View Javadoc in external Browser’ in IntelliJ IDEA
An annoyance in IntelliJ IDEA was that the command ‘View Javadoc in external Browser’ did not work
per default on a mac. On a mac with it’s own java sources the api-doc are located inside a jar and therefore
not able to browse through a normal webbrowser. (If you know a browser which can handle a jar://xxx address let me now in a comment)
IntelliJ does not open or extract those files per default so I did by hand with:
cd /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
jar xf docs.jar // this will extract the contents of the jar
jar xf appledocs.jar // dito
No we need to point IntelliJ to the extracted files. Open your Preferences -> Project Preferences.
Click on the desired JDK and then click on the tab ‘javadocs’. Remove the old entries for the jar and enter
the extracted path
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/docs/api
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/appledocs/api
Not it works. To test it, move the cursor to a class,member whatever and press <Shift>+<F1>. The appropriate javadoc should open in your default browser.
This is not a bug fix, just a bad default configuration. I’d like to see this fixed in the next release…
learning groovy…
… is like Alice climbing through the rabbit hole.
I just connected to a db, did a query from a table and printed out a selection of columns in just
2 lines of code, yes TWO LINES!
groovy-script: lookup classes in jar-files
Recently I had following problem. I had a bunch of jar-files and I had to find out which jar-file was holding a specific class.
This is a common task, because your java-code told you that a class XY was not in you classpath, so you would have to search for it, if you don’t know already where to find it.
Since I had to do it already 2 times and as I am learning groovy I decided to write a short groovy-script
(are there long groovy-scripts?) which allows me to do that.
It is pretty straight-forward so here it is: searchJar.groovy
Hudson has a groovy console
I am playing around with hudson as a integration server.
So far it is very nice and intuitiv, you can even trigger builds by email, mobile etc! And just
yesterday it has groovy-console builtin for monitoring maven2-builds!
Isn’t it a good day when you recover that your new tools already know each other?
Although I have to admit that hudson lacks some features I would like to have such as
access-control per project. For now there is an access-control (LDAP, Matrix-like etc) for the whole build-server…
JSR 666
I just read about JSR 666.
First I took it for serious, but when i read about SchrödingerException
I could not help laughing.
My other favorite tough was ‘import *;‘
