File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
src/main/org/apache/tools/ant/taskdefs/optional Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ Changes that could break older environments:
43
43
updated to launch in a forked JVM so that the System.exit() call
44
44
will not impact the JVM in which Ant process runs.
45
45
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
+
46
54
Fixed bugs:
47
55
-----------
48
56
Original file line number Diff line number Diff line change @@ -95,6 +95,15 @@ <h3>Parameters</h3>
95
95
1.8.0</ em > .</ td >
96
96
< td > No; defaults to < q > false</ q > </ td >
97
97
</ 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 >
98
107
</ table >
99
108
< h3 > Examples</ h3 >
100
109
< pre >
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ public void setPreserveLastModified(boolean b) {
325
325
* If false, note errors but continue.
326
326
*
327
327
* @param failonerror true or false
328
+ * @since Ant 1.10.15
328
329
*/
329
330
public void setFailOnError (boolean failonerror ) {
330
331
this .failonerror = failonerror ;
You can’t perform that action at this time.
0 commit comments