8056989: Sjavac --server option should be optional

8147568: NullPointerException in option parsing

Made --server option optional (and background=true implied)

Reviewed-by: jlahoda, erikj
This commit is contained in:
Andreas Lundblad 2016-01-24 11:32:38 +01:00
parent efa7c6652a
commit 5cd3c7cac8
25 changed files with 48 additions and 81 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -30,10 +30,6 @@ import com.sun.tools.sjavac.Main;
public class SJavacTester {
static final String SERVER_ARG = "--server:"
+ "portfile=testportfile,"
+ "background=false";
final ToolBox tb = new ToolBox();
final Path TEST_ROOT = Paths.get(getClass().getSimpleName());
@ -90,7 +86,6 @@ public class SJavacTester {
"--state-dir=" + BIN,
"-h", HEADERS.toString(),
"-j", "1",
SERVER_ARG,
"--log=debug");
}