Bug 415941 - Set 'code.ignoredWarnings' for test bundles in order to use global build settings
Summary: Set 'code.ignoredWarnings' for test bundles in order to use global build sett...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.10.0 Luna   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Luna M2   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks: 401776
  Show dependency tree
 
Reported: 2013-08-27 06:57 EDT by Dani Megert CLA
Modified: 2013-08-30 09:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.