Community
Participate
Working Groups
Bugzilla – Bug 282851
Default version of Ant Runtime set to Ant 1.6.5 instead of more recent 1.7.0
Last modified: 2009-09-08 10:15:01 EDT
Build ID: M20080911-1700 Steps To Reproduce: 1. Install multiple versions of org.apache.ant plugin as found in the Orbit project 2. Check Preferences>Ant>Runtime 3. More information: Seems like AntCorePreferences.getDefaultAntHomeEntries() doesn't check that the Bundle-Version is the most recent available. We have Orbit installed and that ships with multiple versions of Ant, but the older version is getting set as the default.
The fix for bug 275839 is the culprit here. Now that we try all providers and take the first one that provides libraries, it just so happens that we end up taking the lowest version of Ant when there is more than one version available. One possible solution to this would be to try ad find the highest version of the provider iff all of the providers are org.apache.ant. Darin S, any comments?
Targetting for 3.5.1
Created attachment 144547 [details] proposed fix The proposed patch examines all of the bundles that provide the org.apache.tools.ant package to do the following: 1. iff all of the providers are org.apache.ant, resolution is performed to find the highest version of Ant 2. if there exists at least one provider that is not org.apache.ant, we continue with provider resolution as we do now - i.e. we take the first provider that has libraries in the org.apache.tools.ant package.
+1. Patch looks good & tested with 3 versions of Ant. Should update copyright to 2009 before releasing.
applied patch to HEAD and 3.5.1
Looks good.
marking verified
*** Bug 288703 has been marked as a duplicate of this bug. ***