Apache Ant: How To Set Property When Initially Unset

Also: How To Flexibly Pass JVM parameters to Apache Ant Java (Runtime) Task

Apache Ant is an excellent Java based build & deployment system using XML configuration file. In Ant properties are extensively used to configure tasks, conditionally run targets and more. In short they are an intergral part of build system. My requirement was simple. I wanted to pass JVM arguments to the Java runtime. However sometime I wanted to invoke it without passing any special runtime arguments. Unfortunately jvmarg element doesn't like it when its value is an empty string or even a string with spaces. Finding no way to fool it, I then tried to find a way to set the property to something when it is initially not set (while invoking). This proved surprisingly hard to do. Here is an elegant (I think) solution I came up with. Full article (231 words) »

WordPress Visual / WYSIWYG Editor is Now Passable

The WordPress Visual Editor is finally passable and I have switched to it from plain HTML editor. It saves you time from formatting text while blogging. I haven't faced any obvious glitches so far. It's missing a multi-page button.

Protected by Comment Guard Pro