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

Bug 322572

Summary: API Tools ant tasks should use links/profile metadata to discover bundles in an installation
Product: [Eclipse Project] PDE Reporter: Darin Wright <darin.eclipse>
Component: API ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ankur_sharma, Michael_Rennie, pjparapo
Version: 3.7   
Target Milestone: 3.7 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 324474    
Attachments:
Description Flags
Possible Fix
none
updated patch
none
update none

Description Darin Wright CLA 2010-08-12 14:21:58 EDT
Currently, many API tools ant tasks require installations to analyze and a baseline to compare to. The bundles to analyze are identified by a location on disk which is a simple directory of bundles. The tasks should support pointing to an installation and using the install metadata (.links, p2 profile, etc.), to understant what bundles are part of that installation.
Comment 1 Darin Wright CLA 2010-08-16 11:18:36 EDT
Adding M2 milestone.
Comment 2 Curtis Windatt CLA 2010-09-03 16:04:42 EDT
Created attachment 178198 [details]
Possible Fix

Creates a new method in ApiModelFactory to search an installation for bundles, creating api components for each of them.  The preference page, api use launch config and the ant tasks all use this method.

This fix also includes a fix for bug 324474.
Comment 3 Darin Wright CLA 2010-09-07 10:34:22 EDT
Created attachment 178326 [details]
updated patch

modified use of File.toString() to File.getAbsolutePath()
Comment 4 Darin Wright CLA 2010-09-07 11:15:09 EDT
Created attachment 178332 [details]
update

Fixes use of progress monitor.
Comment 5 Darin Wright CLA 2010-09-07 12:19:06 EDT
Applied/Fixed.
Comment 6 Darin Wright CLA 2010-09-07 12:24:12 EDT
I also added api.tools.core as a friend of the "org.eclipse.pde.internal.core.target.provisional" API.
Comment 7 Darin Wright CLA 2010-09-17 16:50:46 EDT
*** Bug 325652 has been marked as a duplicate of this bug. ***