From 690573257e04716308f481531139665a505b5820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Fri, 9 Feb 2024 18:16:22 +0100 Subject: [PATCH] Add option to p2installed runtime to select additional root IUs Currently one can specify additional IUs only through target extra dependencies, but in some cases it is useful to install additional root IUs (e.g these are user visible and can be updated). This adds a new option to the test mojo that allows to specify additional units to be installed. (cherry picked from commit b0d1fc3d68d7ad8f12c9c896e1a713bb6c797c7a) --- .../surefire/AbstractEclipseTestMojo.java | 31 +++++++++++++++++-- .../java/org/eclipse/tycho/surefire/IU.java | 20 ++++++++++++ .../tycho/surefire/TestPluginMojo.java | 20 ++++++++---- 3 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/IU.java diff --git a/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractEclipseTestMojo.java b/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractEclipseTestMojo.java index 092ee9d7a4..b62ce1c592 100644 --- a/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractEclipseTestMojo.java +++ b/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/AbstractEclipseTestMojo.java @@ -32,6 +32,7 @@ import java.util.LinkedHashSet; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.Properties; import java.util.Set; import java.util.StringJoiner; @@ -429,9 +430,9 @@ public abstract class AbstractEclipseTestMojo extends AbstractTestMojo { * when installing products under test (see below). *