1 | void setOutput(File out) {↵ | | 1 | void setError(File error) {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | throw tooManyAttributes();↵ | | 3 | throw tooManyAttributes();↵
|
4 | }↵ | | 4 | }↵
|
5 | if (out == null) {↵ | | 5 | if (error == null) {↵
|
6 | throw new IllegalArgumentException("output file specified as null");↵ | | 6 | throw new IllegalArgumentException("error file specified as null");↵
|
7 | }↵ | | 7 | }↵
|
8 | usingOutput = true;↵ | | 8 | usingError = true;↵
|
9 | outputMapper = createMergeMapper(out);↵ | | 9 | errorMapper = createMergeMapper(error);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Set the output encoding.↵ | | 12 | * ↵
|
13 | * @param outputEncoding <code>String</code>↵ | | 13 | Property name whose value should be set to the output of↵
|
| | | 14 | * the process.↵
|
| | | 15 | * @param outputProperty the name of the property to be set with the↵
|
14 | .↵ | | 16 | * task's output.↵
|
15 | */↵ | | 17 | */↵
|
16 | public void setOutputEncoding(String outputEncoding) {↵ | | 18 | public void setOutputProperty(String outputProperty) {↵
|
17 | if (isReference()) {↵ | | 19 | if (isReference()) {↵
|
18 | throw tooManyAttributes();↵ | | 20 | throw tooManyAttributes();↵
|
19 | }↵ | | 21 | }↵
|
20 | this.outputEncoding = outputEncoding;↵ | | 22 | this.outputProperty = outputProperty;↵
|
21 | | | 23 |
|