When I run a gant script on a module with the gant facet set, it seems to set ant.home to null by specifying -Dant.home= on the command. So the command starts off like this:
"C:\Program Files\Java\jdk1.6.0_03\bin\java" -Dant.home= -Dgant.home=C:\Tools\gant-1.6.1
This is causing a problem when my gant scripts invokes some ant targets that exist in other build files. It can't locate optional ant task classes. If I override ant.home by passing in a vm argument in my run configuration it works just fine, but I really don't want to have to set up all run configs to work that way. Two questions. First, why is intellij setting ant.home to nothing in this case, and second, how do I change this behavior?
Thanks in advance.