diff options
author | Leo Ufimtsev | 2017-07-07 16:15:36 +0000 |
---|---|---|
committer | Leo Ufimtsev | 2017-07-07 16:19:42 +0000 |
commit | e2b6b9c9d7134d4747c6389573923e6efa92b1de (patch) | |
tree | f2b46200ee6b6778d6468ce19460aa95cda4c488 /pom.xml | |
parent | b4c40d66a7ab3969444f35b3e5c426ad71bc79d3 (diff) | |
download | eclipse.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.xml | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,8 @@ <activation> <os> <family>unix</family> - </os> + <name>Linux</name> + </os> </activation> <modules> <module>tests/org.eclipse.swt.tests.gtk</module> |