ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@seessle.de>
Subject Setting Jikes-Compiler flags thru nested jikes-element?
Date Mon, 02 Oct 2000 07:50:27 GMT
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



Mime
View raw message