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

Bug 334674

Summary: Searching only for illegal API Use throws exception
Product: [Eclipse Project] PDE Reporter: Peter Parapounsky <pjparapo>
Component: API ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie, pjparapo
Version: 4.0Flags: curtis.windatt.public: review+
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
fix none

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.