ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: How to use more than one compiler during build of a project?
Date Wed, 13 Feb 2002 11:37:09 GMT

> I wish to use both the 'modern' compiler and the 'jikes' compiler for
> different targets (don't ask why - it's necessary due to some 
> problems with both :).

I think you can solve your problem by putting one of the javac targets in 
a separate buildfile, and then call it using:

    <ant antfile="otherJavacTargetBuildfile.xml" inheritAll="false"/>

The "inheritAll" means that the ${build.compiler} can be overridden to 
allow you to change the compiler type in the new buildfile.

I haven't tried this out but I think it should work.

Try it and let us on the list know...


Andrew Beacock
Senior Software Engineer/Project Lead
Nokia Mobile Phones

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message