This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.testing.paxexam-0.0.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-paxexam.git
commit 767de6696c6be092eff14370a7c75e3835848df5 Author: Oliver Lietz <[email protected]> AuthorDate: Wed Jul 27 20:24:44 2016 +0000 SLING-5898 Point to the alternative repository if specified on the command-line make it an Option git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/org.apache.sling.testing.paxexam@1754341 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/sling/testing/paxexam/TestSupport.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java b/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java index b1fdfa9..dace320 100644 --- a/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java +++ b/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java @@ -62,16 +62,20 @@ public abstract class TestSupport { } protected Option baseConfiguration() { - final String localRepository = System.getProperty("maven.repo.local", ""); // PAXEXAM-543 return composite( + localMavenRepo(), systemProperty("pax.exam.osgi.unresolved.fail").value("true"), - when(localRepository.length() > 0).useOptions( - systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository) - ), keepCaches(), CoreOptions.workingDirectory(workingDirectory()), mavenBundle().groupId("org.apache.sling").artifactId("org.apache.sling.testing.paxexam").versionAsInProject() ); } + protected Option localMavenRepo() { + final String localRepository = System.getProperty("maven.repo.local", ""); // PAXEXAM-543 + return when(localRepository.length() > 0).useOptions( + systemProperty("org.ops4j.pax.url.mvn.localRepository").value(localRepository) + ); + } + } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
