Run ant task in different jvm
问题 Our ant build is run using Java 1.7.0 for JAVA_HOME. This way javac and all other Java dependent targets use the correct Java by default. But 1 ant target from an external supplier does not support (or rather has a bug) using Java 1.7.0. And unlike e.g. javac or a forked junit, this target does not support parameters to switch jvm. Is it possible to run a specific ant target in a different jvm? 回答1: To make Jeanne Boyarsky's suggestion of using the exec Ant task concrete, the following