On Wednesday, January 10, 2007, at 09:00AM, "Elliotte Harold" <email@hidden> wrote:
>I'm working with a project that cannot compile in Java 1.5 due to some
>bugs in that version not present in 1.4. Is there a quick and easy way
>to tell *Ant* that I want to use 1.4 for this build only?
I may be missing something in what you're trying to do but it seems to me that the usual way to control the compiler Ant uses is via the Ant script itself. Specifying compiler="javac1.4" might be enough for your case. If you want to compile against the 1.4 classpath, specifying the compiler executable (fork="yes", executable=whatever) might be what you need. Here's what I use for one of my scripts that requires the 1.4 compiler.
<javac
fork="yes"
executable="${build.compiler.exe}"
compiler="javac1.4"
...>
...
</javac>
Steve
--
Steve Roy
<http://homepage.mac.com/sroy>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden