Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Switching ant 1.4



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

References: 
 >Switching ant 1.4 (From: Elliotte Harold <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.