From a38273bbf4ab678873feee1d1907efde74baa016 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Wed, 17 Mar 2004 22:10:18 +0000 Subject: [PATCH] ant -p swallows (configuration) errors silently. PR: 27732 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276246 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 3 +++ src/main/org/apache/tools/ant/Main.java | 2 ++ 2 files changed, 5 insertions(+) diff --git a/WHATSNEW b/WHATSNEW index 7fceecac4..1b89be733 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -87,6 +87,9 @@ Fixed bugs: * swallowed the stack trace of exceptions thrown by the executed program if run in the same VM. +* -projecthelp swallowed (configuration) errors silently. + Bugzilla report 27732. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index 356d80cec..507e8117b 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -685,6 +685,8 @@ public class Main implements AntMain { } finally { if (!projectHelp) { project.fireBuildFinished(error); + } else if (error != null) { + project.log(error.toString(), Project.MSG_ERR); } } }