Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326958 - default ANT home directory lower than the Ant plugin version
Summary: default ANT home directory lower than the Ant plugin version
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.6.2   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 325125
Blocks:
  Show dependency tree
 
Reported: 2010-10-04 14:24 EDT by Darin Wright CLA
Modified: 2011-01-21 09:59 EST (History)
3 users (show)

See Also:


Attachments
patch (2.23 KB, patch)
2010-10-04 14:27 EDT, Darin Wright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2010-10-04 14:24:47 EDT
+++ This bug was initially created as a clone of Bug #325125 +++

Build Identifier: M20100818-0800

In our adopter product we see a problem with the default Ant home. The directory is getting resolved to one of our own plugins. I did a bit of debugging, and for some reason the packageAdmin.getExportedPackages("org.apache.tools.ant") call seems to be returning four plugins, the org.eclipse.ant one and three from our adopter. Yet the three from our adopter do not export org.apache.tools.ant so I am not even sure why they are there. Also it appears that because it is one of ours that occurs first in the list, it is the one that gets setup up as the ant home incorrectly.

This breaks our ant function by default and is a regression from 3.4.x.

I can't tell you how to repro as I am not sure why it thinks these three bundles export the tools.ant, however I can repro so I can help gather the info you would need.

Reproducible: Always

Cloning the bug to fix in 3.6.x streams
Comment 1 Darin Wright CLA 2010-10-04 14:27:29 EDT
Created attachment 180195 [details]
patch

This patch is the same as the patch in bug 325125
Comment 2 Darin Wright CLA 2010-10-04 14:36:37 EDT
Fixed. Released to 3.6.2 and 3.6.1 maintenance branches.
Comment 3 Michael Rennie CLA 2011-01-21 09:59:43 EST
verified in the test build M20110119-0834