Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334674 - Searching only for illegal API Use throws exception
Summary: Searching only for illegal API Use throws exception
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 12:07 EST by Peter Parapounsky CLA
Modified: 2011-01-24 13:12 EST (History)
3 users (show)

See Also:
curtis.windatt.public: review+


Attachments
fix (2.69 KB, patch)
2011-01-20 15:22 EST, Michael Rennie CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Parapounsky CLA 2011-01-18 12:07:11 EST
Build Identifier: 3.7M4

When searching only for illegal API with the following attributes set:
considerapi="false"
considerinternal="false"
considerillegaluse="true" 

This exception is thrown by the API Use Ant Task:
Exception:
"Build stopping - neither API nor internal references are being searched for
at org.eclipse.pde.api.tools.internal.tasks.ApiUseTask.assertParameters(ApiUseTask.java:265)"



Reproducible: Always
Comment 1 Michael Rennie CLA 2011-01-20 15:22:43 EST
Created attachment 187237 [details]
fix

adds the check for illegal use to the verification during the build
Comment 2 Michael Rennie CLA 2011-01-20 15:26:51 EST
applied patch to HEAD, please verify Curtis
Comment 3 Curtis Windatt CLA 2011-01-24 13:11:53 EST
+1
This is fixed in HEAD.
Comment 4 Curtis Windatt CLA 2011-01-24 13:12:03 EST
Verified.