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
@ -62,7 +62,7 @@ public class CompileWithAtFile extends SJavacTester {
Files.createDirectory(BIN);
Map<String,Long> previous_bin_state = collectState(BIN);
compile("@" + GENSRC + "/list.txt", "--server:portfile=testserver,background=false");
compile("@" + GENSRC + "/list.txt");
Map<String,Long> new_bin_state = collectState(BIN);
verifyThatFilesHaveBeenAdded(previous_bin_state, new_bin_state,