diff options
author | Stephan Leicht Vogt | 2013-04-12 14:53:06 +0000 |
---|---|---|
committer | Stephan Leicht Vogt | 2013-04-15 17:40:06 +0000 |
commit | a4205fd5c2f58403ff9b9385d131cb5fc90889e6 (patch) | |
tree | 5513859d6621e6a9f582e65ddaac200d2c988b23 | |
parent | 8ca9002ab381205f8c4d770dc5a5971916b7fd9d (diff) | |
download | org.eclipse.scout.rt-a4205fd5c2f58403ff9b9385d131cb5fc90889e6.tar.gz org.eclipse.scout.rt-a4205fd5c2f58403ff9b9385d131cb5fc90889e6.tar.xz org.eclipse.scout.rt-a4205fd5c2f58403ff9b9385d131cb5fc90889e6.zip |
removes mail tests from 'default' profile in commons.test fragment
to be able to execute the Mail-Tests javax.mail has to be in the
endorsed dir of the running jre. As this is not the case for every
environment the said tests are excluded in the 'default' profile.
If javax.mail is in the jre classpath the tests can be run with the
profile 'javaxMail' (-P javaxMail).
Change-Id: I0f895335b93d6892a380ba807cc7283d3cec116e
-rw-r--r-- | org.eclipse.scout.commons.test/pom.xml | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/org.eclipse.scout.commons.test/pom.xml b/org.eclipse.scout.commons.test/pom.xml index 237006fa07..f3784c6f59 100644 --- a/org.eclipse.scout.commons.test/pom.xml +++ b/org.eclipse.scout.commons.test/pom.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- - Copyright (c) 2012 BSI Business Systems Integration AG. + Copyright (c) 2012,2013 BSI Business Systems Integration AG. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at @@ -9,7 +9,6 @@ Contributors: Stephan Leicht Vogt - initial implementation --> - <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> @@ -23,4 +22,49 @@ <artifactId>org.eclipse.scout.commons.test</artifactId> <packaging>eclipse-test-plugin</packaging> + + <!-- to be able to execute the Mail-Tests javax.mail has to be in the endorsed + dir of the running jre. As this is not the case for every environment the + said tests are excluded in the 'default' profile --> + <profiles> + <profile> + <id>withoutJavaxMail</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-surefire-plugin</artifactId> + <configuration> + <excludes> + <exclude>**/Mail*Test.java</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </profile> + + <profile> + <id>javaxMail</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-surefire-plugin</artifactId> + <configuration> + <includes> + <include>**/*Test.java</include> + </includes> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |