Browse Source

Revert: any RuntimeException must be wrapped

master
Gintas Grigelionis 6 years ago
parent
commit
9321ea62bf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/EchoXML.java

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/EchoXML.java View File

@@ -86,7 +86,9 @@ public class EchoXML extends XMLFragment {
try (OutputStream os = (file == null) ? new LogOutputStream(this, Project.MSG_INFO)
: FileUtils.newOutputStream(file.toPath(), append)) {
writer.write((Element) n, os);
} catch (IOException e) {
} catch (BuildException be) {
throw be;
} catch (Exception e) {
throw new BuildException(e);
}
}


Loading…
Cancel
Save