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>
1 file changed
tree: f2b46200ee6b6778d6468ce19460aa95cda4c488
  1. bundles/
  2. examples/
  3. features/
  4. local-build/
  5. tests/
  6. .gitignore
  7. pom.xml
  8. README.md
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Contact:

Contact the project developers via the project's “dev” list.

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!