Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326958

Summary: default ANT home directory lower than the Ant plugin version
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: AntAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: darin.eclipse, Michael_Rennie, rtaniwa
Version: 3.5   
Target Milestone: 3.6.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 325125    
Bug Blocks:    
Attachments:
Description Flags
patch none

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