From dddad4d4d771a92da814300eabb573e3040d8742 Mon Sep 17 00:00:00 2001 From: Rui Gu Date: Fri, 18 Mar 2016 14:30:47 +0000 Subject: [PATCH] introducing launchOptions local var --- .gitignore | 2 ++ src/test/java/org/redisson/RedisRunner.java | 10 ++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6cfdf14b5..0f61eb300 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ /target /*.cmd + +nb-configuration.xml diff --git a/src/test/java/org/redisson/RedisRunner.java b/src/test/java/org/redisson/RedisRunner.java index 3995ac351..2f0b61e99 100644 --- a/src/test/java/org/redisson/RedisRunner.java +++ b/src/test/java/org/redisson/RedisRunner.java @@ -193,13 +193,11 @@ public class RedisRunner { } private static RedisProcess runWithOptions(String... options) throws IOException, InterruptedException { - System.out.println("REDIS LAUNCH OPTIONS: " + Arrays.toString(Arrays.stream(options) + String[] launchOptions = Arrays.stream(options) .collect(Collectors.joining()) - .split(" "))); - ProcessBuilder master = new ProcessBuilder( - Arrays.stream(options) - .collect(Collectors.joining()) - .split(" ")) + .split(" "); + System.out.println("REDIS LAUNCH OPTIONS: " + Arrays.toString(launchOptions)); + ProcessBuilder master = new ProcessBuilder(launchOptions) .redirectErrorStream(true) .directory(new File(redisBinary).getParentFile()); Process p = master.start();