From 83b047285d2875ab9f5387142d0b421b58f47f09 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Tue, 26 Jan 2021 15:44:27 +0100 Subject: [PATCH] Fix checkstyle violations in JettyHomeTester Signed-off-by: Jan Bartel --- .../eclipse/jetty/tests/distribution/JettyHomeTester.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test-distribution/src/main/java/org/eclipse/jetty/tests/distribution/JettyHomeTester.java b/tests/test-distribution/src/main/java/org/eclipse/jetty/tests/distribution/JettyHomeTester.java index 8cd90b094047..201d5d597427 100644 --- a/tests/test-distribution/src/main/java/org/eclipse/jetty/tests/distribution/JettyHomeTester.java +++ b/tests/test-distribution/src/main/java/org/eclipse/jetty/tests/distribution/JettyHomeTester.java @@ -156,9 +156,12 @@ public JettyHomeTester.Run start(List args) throws Exception args = new ArrayList<>(args); - if (StringUtil.isNotBlank( config.mavenLocalRepository)) { + if (StringUtil.isNotBlank(config.mavenLocalRepository)) + { args.add("maven.local.repo=" + config.mavenLocalRepository); - } else if (StringUtil.isNotBlank(System.getProperty("mavenRepoPath"))){ + } + else if (StringUtil.isNotBlank(System.getProperty("mavenRepoPath"))) + { // we get artifacts from local repo first args.add("maven.local.repo=" + System.getProperty("mavenRepoPath")); }