From 1feb7a0ef4ff095b9712f891385207b60f4c2e6c Mon Sep 17 00:00:00 2001 From: Jacek <52388493+jacek-poreda-sonarsource@users.noreply.github.com> Date: Thu, 1 Aug 2019 15:08:41 +0200 Subject: Fix test to make it run on mac os (#1977) * fix test to make it run on mac os --- sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sonar-plugin-api/src/main') diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java index 36dc553a74e..ed4ee20497c 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/System2.java @@ -126,6 +126,13 @@ public class System2 { return SystemUtils.IS_OS_WINDOWS; } + /** + * True if this is Mac system. + */ + public boolean isOsMac() { + return SystemUtils.IS_OS_MAC; + } + /** * True if Java 7 or Java 8 runtime environment * -- cgit v1.2.3