Skip to content

Commit

Permalink
record new failOnError attribute of replaceregexp
Browse files Browse the repository at this point in the history
  • Loading branch information
bodewig committed Nov 17, 2023
1 parent 5a1ae9b commit 5e286d2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions WHATSNEW
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ Changes that could break older environments:
updated to launch in a forked JVM so that the System.exit() call
will not impact the JVM in which Ant process runs.

Other changes:
--------------

* <replaceregexp> has a new failOnError attirbute which, when
enabled, makes the task throw a BuildException for certain error
cases that will only be logged otherwise.
Github Pull Request #206

Fixed bugs:
-----------

Expand Down
9 changes: 9 additions & 0 deletions manual/Tasks/replaceregexp.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ <h3>Parameters</h3>
1.8.0</em>.</td>
<td>No; defaults to <q>false</q></td>
</tr>
<tr>
<td>failonerror</td>
<td>Stop the build process if certain file operations fail.<br/>
For historical reasons the task swallows and logs certain
failure cases, enabling this option makes sure the exception
make the build fail instead.
<em>since Ant 1.10.15</em></td>
<td>No; defaults to <q>false</q></td>
</tr>
</table>
<h3>Examples</h3>
<pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ public void setPreserveLastModified(boolean b) {
* If false, note errors but continue.
*
* @param failonerror true or false
* @since Ant 1.10.15
*/
public void setFailOnError(boolean failonerror) {
this.failonerror = failonerror;
Expand Down

0 comments on commit 5e286d2

Please sign in to comment.