equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
172 * @param options the options |
172 * @param options the options |
173 * @return this task object |
173 * @return this task object |
174 */ |
174 */ |
175 public JavacTask options(String... options) { |
175 public JavacTask options(String... options) { |
176 this.options = Arrays.asList(options); |
176 this.options = Arrays.asList(options); |
|
177 return this; |
|
178 } |
|
179 |
|
180 /** |
|
181 * Sets the options. |
|
182 * @param spaceSeparatedOption the space separated options |
|
183 * @return this task object |
|
184 */ |
|
185 public JavacTask spaceSeparatedOptions(String spaceSeparatedOption) { |
|
186 this.options = Arrays.asList(spaceSeparatedOption.split("\\s+")); |
177 return this; |
187 return this; |
178 } |
188 } |
179 |
189 |
180 /** |
190 /** |
181 * Sets the options. |
191 * Sets the options. |