Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322572 - API Tools ant tasks should use links/profile metadata to discover bundles in an installation
Summary: API Tools ant tasks should use links/profile metadata to discover bundles in ...
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 325652 (view as bug list)
Depends on:
Blocks: 324474
  Show dependency tree
 
Reported: 2010-08-12 14:21 EDT by Darin Wright CLA
Modified: 2011-01-26 14:25 EST (History)
3 users (show)

See Also:


Attachments
Possible Fix (32.75 KB, patch)
2010-09-03 16:04 EDT, Curtis Windatt CLA
no flags Details | Diff
updated patch (33.49 KB, patch)
2010-09-07 10:34 EDT, Darin Wright CLA
no flags Details | Diff
update (33.49 KB, patch)
2010-09-07 11:15 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-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. ***