Bug 415941

Summary: Set 'code.ignoredWarnings' for test bundles in order to use global build settings
Product: [Eclipse Project] Equinox Reporter: Dani Megert <daniel_megert>
Component: FrameworkAssignee: Thomas Watson <tjwatson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.10.0 LunaKeywords: test
Target Milestone: Luna M2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 401776    

Description Dani Megert CLA 2013-08-27 06:57:32 EDT
Set 'code.ignoredWarnings' for test bundles in order to use the global build settings and reduce the discouraged access warnings in the official build.

The easiest way to do this is:

1. in the repository root add a folder 'tests-pom'
2. into the new folder add the following pom.xml:
     http://git.eclipse.org/c/pde/eclipse.pde.ui.git/plain/tests-pom/pom.xml
3. adjust the parent group and artifact id in that file
4. in each test bundle modify the pom.xml as follows:
   a) replace the parent artifact id with "tests-pom"
   b) add this to the parent declaration:
      <relativePath>../../tests-pom/</relativePath>

As a template you can use e.g. http://git.eclipse.org/c/pde/eclipse.pde.ui.git/
Comment 1 Thomas Watson CLA 2013-08-30 08:58:15 EDT
The rt.equinox.framework repo only has one test project.  I just updated that pom.xml to include the new property directly:

http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=634c7448ee842e6c320b4efc4014b83be4513be2

Still need to do this for the tests in rt.equinox.bundles.  There are multiple test projects there so will use a new parent pom.