Q:

How to set java_home in ant build xml

I need to run my project on java 1.4 and
pmd and findbugs on java 1.5
So, i need to set java_home in my build xml.
Thanks in advance,
-Sravan  

A:

There is a attribute called "jvm" for the java-task:
<java jvm="PATH_TO_YOUR_VM" fork="true"...>
...
</java>

