Monthly Archives: July 2010

Add system properties through spring XML configuration.

If you want to set system properties through XML configuration, here is a solution (inspired by this question): Use two MethodInvokingFactorybeans, one to statically access System.getProperties() and one to call properties.putAll(map) on these properties. Here’s the configuration: <bean class=”org.springframework.beans.factory.config.MethodInvokingFactoryBean”> ¬† … Continue reading

Posted in Java, Spring | 2 Comments

Wicket behavior to guard changed form.

Triggered by the StackOverflow Question Wicket : Notify if page model has been changed., here is a wicket behavior that you can attach to a form and that will stop the user from leaving the site once he has changed … Continue reading

Posted in Java, Wicket | Leave a comment

Compile .less files to .css in maven¬†(again using GMaven)

I have recently come across LessCSS, a CSS meta-language that introduces code re-usability. I have been looking for a solution like this for some years now, as I hate having to write the same stuff over and over again. So … Continue reading

Posted in CSS, Groovy, JavaScript, Maven | 10 Comments

Deploy a folder hierarchy to a maven repository

Again, prompted by a Stackoverflow question, here is a means to deploy an entire directory including subdirectories to a maven repository. I am using GMaven (groovy scripts embedded in maven), a great way to script and interact with maven without … Continue reading

Posted in Groovy, Maven | 1 Comment

Using Prototype / Ajax in Hudson

Triggered by the stackoverflow question Hudson: Running all jobs in a view by pressing one button, I played a bit with Ajax on Hudson using the Hudson API. The nice thing is: Hudson ships with the prototype api (but unfortunately … Continue reading

Posted in Hudson, JavaScript | Leave a comment