Community
Participate
Working Groups
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/
I have added a test parent pom, but not yet linked it from the test bundles. I'm no pom expert so could use a second set of eyes on it. There is a slight difference from Dani's instructions: p2 already has a releng folder for additional pom.xml files so I put the "test parent" in there. I made the parent of the "test parent" to be the "p2 parent" that is the common parent of all p2 pom.xml files.
Reviewed with Paul and released: http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=329dacddd3830ba797df94d7768ce15622536c91 http://git.eclipse.org/c/equinox/rt.equinox.p2.git/commit/?id=bcc06545903139bf560a1f1eebe6ee26a9b34429
FWIW, a test build at least completed. Not sure if it "worked" as you wanted, but these build results are here: http://build.eclipse.org/eclipse/builds/4I/siteDir/eclipse/downloads/drops4/I20130904-1455/testResults.php (And these "test builds" don't have unit tests ran ... just confirming you didn't "break the build" :)
Verified in I20130904-2000.