Set java version system properties correctly if -Djava6=true property is set on the ant build command line.