What do you think of the following extension to Javac?
<?xml version="1.0"?>
<project name="myProject" default="default" basedir=".">
<target name="default">
<property name="build.compiler" value="jikes"/>
<property name="build.compiler.emacs" value="true"/>
<delete file="A.class"/>
<javac srcdir="." destdir="." includes="A.java">
<jikes pedantic="true" warnings="false"/>
</javac>
<delete file="A.class"/>
<javac srcdir="." destdir="." includes="A.java">
<jikes pedantic="true" warnings="false" emacs="false"/>
</javac>
</target>
</project>
You can specify jikes-properties thru an embedded jikes-element (and for
backwards-compatibilty also thru properties). Settings are ignored if
compiler is not jikes.
Could even be extended to use jikes if <jikes> (and jvc if <jvc> is
specified (but that will break my own build-files so it's not currently
included :-) )
Nico