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



Elliotte Harold 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?
>
>e.g. I want to try to do something like
>
>$ ant -1.4 build
>
>Any ideas?

A) Modify ant's environment to cause it to find the 1.4 commands first.
Modifying PATH should suffice.  See the 'env' command, or 'man env'.

B) Modify ant to accept a -1.4 arg.
The following shows what 'ant' is:
  file `which ant`
and reapplying 'file' to the symlink shows it's a shell script.
So it should be just a small matter of programming to change the ant script
to accept another arg that specifies which version to use from the
JavaVM.framework.

C) Create a different version, called 'ant14'.
Using either A or B above, make a copy of the current ant and modify it,
placing it in a bin dir used by your build system.  This would be to avoid
problems caused by having non-standard ant versions.

  -- GG


 _______________________________________________
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



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.