1 | public void setOutput(File out) {↵ | | 1 | public void setOutput(File out) {↵
|
2 | this.output = out;↵ | | 2 | this.output = out;↵
|
3 | incompatibleWithSpawn = true;↵ | | 3 | incompatibleWithSpawn = true;↵
|
4 | }↵ | | 4 | }↵
|
|
5 | /**↵ | | 5 | /**↵
|
6 | * Set the input file to use for the task.↵ | | 6 | * Set the input to use for the task.↵
|
7 | *↵ | | 7 | *↵
|
8 | * @param input name of a file from which to get input.↵ | | 8 | * @param input name of the input file.↵
|
9 | */↵ | | 9 | */↵
|
10 | public void setInput(File input) {↵ | | 10 | public void setInput(File input) {↵
|
11 | if (inputString != null) {↵ | | 11 | if (inputString != null) {↵
|
12 | throw new BuildException("The \"input\" and \"inputstring\" "↵ | | 12 | throw new BuildException("The \"input\" and \"inputstring\" "↵
|
13 | + "attributes cannot both be specified");↵ | | 13 | + "attributes cannot both be specified");↵
|
14 | }↵ | | 14 | }↵
|
15 | this.input = input;↵ | | 15 | this.input = input;↵
|
16 | incompatibleWithSpawn = true;↵ | | 16 | incompatibleWithSpawn = true;↵
|
17 | }↵ | | 17 | }↵
|
|
18 | /**↵ | | 18 | /**↵
|
19 | * Set the string to use as input.↵ | | 19 | * Set the string to use as input.↵
|
20 | *↵ | | 20 | *↵
|
21 | * @param inputString the string which is used as the input source.↵ | | 21 | * @param inputString the string which is used as the input source.↵
|
22 | */↵ | | 22 | */↵
|
23 | public void setInputString(String inputString) {↵ | | 23 | public void setInputString(String inputString) {↵
|
24 | if (input != null) {↵ | | 24 | if (input != null) {↵
|
25 | throw new BuildException("The \"input\" and \"inputstring\" "↵ | | 25 | throw new BuildException("The \"input\" and \"inputstring\" "↵
|
26 | + "attributes cannot both be specified");↵ | | 26 | + "attributes cannot both be specified");↵
|
27 | }↵ | | 27 | }↵
|
28 | this.inputString = inputString;↵ | | 28 | this.inputString = inputString;↵
|
29 | incompatibleWithSpawn = true;↵ | | 29 | incompatibleWithSpawn = true;↵
|
30 | }↵ | | 30 | }↵
|
|
31 | /**↵ | | 31 | /**↵
|
32 | * Controls whether error output of exec is logged. This is only useful when↵ | | 32 | * Set whether error output of exec is logged. This is only useful↵
|
33 | * output is being redirected and error output is desired in the↵ | | 33 | * when output is being redirected and error output is desired in the↵
|
34 | Ant log.↵ | | 34 | * Ant log.↵
|
35 | *↵ | | 35 | *↵
|
36 | * @param logError set to true to log error output in the normal ant log↵ | | 36 | * @param logError get in the ant log the messages coming from stderr↵
|
37 | .↵ | | 37 | * in the case that fork = true.↵
|
38 | */↵ | | 38 | */↵
|
39 | public void setLogError(boolean logError) {↵ | | 39 | public void setLogError(boolean logError) {↵
|
40 | redirector.setLogError(logError);↵ | | 40 | redirector.setLogError(logError);↵
|
41 | incompatibleWithSpawn |= logError;↵ | | 41 | incompatibleWithSpawn |= logError;↵
|
42 | }↵ | | 42 | }↵
|
|
43 | /**↵ | | 43 | /**↵
|
44 | * Set the File to which the error stream of the process should be redirected.↵ | | 44 | * Set the File to which the error stream of the process is redirected.↵
|
45 | *↵ | | 45 | *↵
|
46 | * @param error a file to which stderr should be sent.↵ | | 46 | * @param error file getting the error stream.↵
|
47 | *↵ | | 47 | *↵
|
48 | * @since Ant 1.6↵ | | 48 | * @since Ant 1.6↵
|
49 | */↵ | | 49 | */↵
|
50 | public void setError(File error) {↵ | | 50 | public void setError(File error) {↵
|
51 | this.error = error;↵ | | 51 | this.error = error;↵
|
52 | incompatibleWithSpawn = true;↵ | | 52 | incompatibleWithSpawn = true;↵
|
53 | }↵ | | 53 | }↵
|
|
54 | /**↵ | | 54 | /**↵
|
55 | * Sets the property name whose value should be set to the output of↵ | | 55 | * Set the property name whose value should be set to the output of↵
|
56 | * the process.↵ | | 56 | * the process.↵
|
57 | *↵ | | 57 | *↵
|
58 | * @param outputProp name of property.↵ | | 58 | * @param outputProp property name.↵
|
| | | 59 | *↵
|
59 | */↵ | | 60 | */↵
|
60 | public void setOutputproperty(String outputProp) {↵ | | 61 | public void setOutputproperty(String outputProp) {↵
|
61 | redirector.setOutputProperty(outputProp);↵ | | 62 | redirector.setOutputProperty(outputProp);↵
|
62 | incompatibleWithSpawn = true;↵ | | 63 | incompatibleWithSpawn = true;↵
|
63 | }↵ | | 64 | }↵
|
|
64 | /**↵ | | 65 | /**↵
|
65 | * Sets the name of the property whose value should be set to the error of↵ | | 66 | * Set the property name whose value should be set to the error of↵
|
66 | * the process.↵ | | 67 | * the process.↵
|
67 | *↵ | | 68 | *↵
|
68 | * @param errorProperty name of property.↵ | | 69 | * @param errorProperty property name.↵
|
69 | *↵ | | 70 | *↵
|
70 | * @since Ant 1.6↵ | | 71 | * @since Ant 1.6↵
|
71 | */↵ | | 72 | */↵
|
72 | public void setErrorProperty(String errorProperty) {↵ | | 73 | public void setErrorProperty(String errorProperty) {↵
|
73 | redirector.setErrorProperty(errorProperty);↵ | | 74 | redirector.setErrorProperty(errorProperty);↵
|
74 | incompatibleWithSpawn = true | | 75 | incompatibleWithSpawn = true
|