środa, 16 kwietnia 2014

Filtering java sources with maven to use with Gin

From time to time I get a need to use maven filtering capabilities to change properties depending on the maven build profile. It's nice thing I must admit. Recently, I also needed to do filtering on java source code (in Gin module to bind different constant to be injected to my GWT view), and it seems that standard filtering is not capable of doing it. So here is what I did...

czwartek, 10 kwietnia 2014

Updating xml file in war/ear

Recently I needed to update some xml files inside war and ear archives. They were xml descriptors, so I did it with Groovy because of its great xml support.