summaryrefslogtreecommitdiff
path: root/qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java')
-rw-r--r--qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java b/qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java
index 59543874b4..ffbb2938de 100644
--- a/qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java
+++ b/qpid/java/broker/src/test/java/org/apache/qpid/server/RunBrokerWithCommand.java
@@ -27,6 +27,7 @@ import java.io.InputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
+import java.util.Arrays;
public class RunBrokerWithCommand
{
@@ -35,11 +36,8 @@ public class RunBrokerWithCommand
//Start the broker
try
{
- String[] fudge = args.clone();
-
- // Override the first value which is the command we are going to run later.
- fudge[0] = "-v";
- new Main(fudge).startup();
+ String[] copy = Arrays.copyOfRange(args, 1, args.length);
+ Main.main(copy);
}
catch (Exception e)
{