--- a/test/langtools/tools/lib/toolbox/JavacTask.java Wed Apr 18 13:37:39 2018 -0400
+++ b/test/langtools/tools/lib/toolbox/JavacTask.java Wed Apr 18 16:02:53 2018 -0400
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2018, 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
@@ -179,6 +179,16 @@
/**
* Sets the options.
+ * @param spaceSeparatedOption the space separated options
+ * @return this task object
+ */
+ public JavacTask spaceSeparatedOptions(String spaceSeparatedOption) {
+ this.options = Arrays.asList(spaceSeparatedOption.split("\\s+"));
+ return this;
+ }
+
+ /**
+ * Sets the options.
* @param options the options
* @return this task object
*/