Skip to content

Commit 5e286d2

Browse files
committed
record new failOnError attribute of replaceregexp
see apache#206
1 parent 5a1ae9b commit 5e286d2

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

WHATSNEW

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ Changes that could break older environments:
4343
updated to launch in a forked JVM so that the System.exit() call
4444
will not impact the JVM in which Ant process runs.
4545

46+
Other changes:
47+
--------------
48+
49+
* <replaceregexp> has a new failOnError attirbute which, when
50+
enabled, makes the task throw a BuildException for certain error
51+
cases that will only be logged otherwise.
52+
Github Pull Request #206
53+
4654
Fixed bugs:
4755
-----------
4856

manual/Tasks/replaceregexp.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ <h3>Parameters</h3>
9595
1.8.0</em>.</td>
9696
<td>No; defaults to <q>false</q></td>
9797
</tr>
98+
<tr>
99+
<td>failonerror</td>
100+
<td>Stop the build process if certain file operations fail.<br/>
101+
For historical reasons the task swallows and logs certain
102+
failure cases, enabling this option makes sure the exception
103+
make the build fail instead.
104+
<em>since Ant 1.10.15</em></td>
105+
<td>No; defaults to <q>false</q></td>
106+
</tr>
98107
</table>
99108
<h3>Examples</h3>
100109
<pre>

src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ public void setPreserveLastModified(boolean b) {
325325
* If false, note errors but continue.
326326
*
327327
* @param failonerror true or false
328+
* @since Ant 1.10.15
328329
*/
329330
public void setFailOnError(boolean failonerror) {
330331
this.failonerror = failonerror;

0 commit comments

Comments
 (0)