Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2017-07-07 12:15:36 -0400
committerLeo Ufimtsev2017-07-07 12:19:42 -0400
commite2b6b9c9d7134d4747c6389573923e6efa92b1de (patch)
treef2b46200ee6b6778d6468ce19460aa95cda4c488 /pom.xml
parentb4c40d66a7ab3969444f35b3e5c426ad71bc79d3 (diff)
downloadeclipse.platform.swt-e2b6b9c9d7134d4747c6389573923e6efa92b1de.tar.gz
eclipse.platform.swt-e2b6b9c9d7134d4747c6389573923e6efa92b1de.tar.xz
eclipse.platform.swt-e2b6b9c9d7134d4747c6389573923e6efa92b1de.zip
Bug 518379 – Allow platform specific JUnit tests(gtk tests not on cocoa)
Currently swt gtk only tests are marked to compile/build on cocoa, because Cocoa is a 'unix' family type (as is Linux). The correct solution is to add "<name>Linux</name>" to activation profile. This way the Unix profile is only launched on Linux and not on Cocoa. Found this in: http://maven.40175.n5.nabble.com/Profile-activation-for-mac-and-linux-td3263043.html https://stackoverflow.com/questions/38465711/choose-maven-profile-from-os-family/44975462#44975462 As a note, family names are defined here: https://github.com/sonatype/plexus-utils/blob/f2beca21c75084986b49b3ab7b5f0f988021dcea/src/main/java/org/codehaus/plexus/util/Os.java#L72 Verified on: - Fedora/Ubuntu/CentOS (gtk tests included) - Cocoa (gtk tests not included) Change-Id: I51dd2cd9de9e6efc8c348d1eec083325c2774b2a Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 8433b64dd8..f53e258530 100644
--- a/pom.xml
+++ b/pom.xml
@@ -82,7 +82,8 @@
<activation>
<os>
<family>unix</family>
- </os>
+ <name>Linux</name>
+ </os>
</activation>
<modules>
<module>tests/org.eclipse.swt.tests.gtk</module>

Back to the top