Browse Source

fix logging logic

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@821677 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
f95493959b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/taskdefs/Exit.java

+ 4
- 2
src/main/org/apache/tools/ant/taskdefs/Exit.java View File

@@ -139,10 +139,12 @@ public class Exit extends Task {
if (message != null && message.trim().length() > 0) { if (message != null && message.trim().length() > 0) {
text = message.trim(); text = message.trim();
} else { } else {
if (!testIfCondition()) {
if (ifCondition != null && !"".equals(ifCondition)
&& testIfCondition()) {
text = "if=" + ifCondition; text = "if=" + ifCondition;
} }
if (!testUnlessCondition()) {
if (unlessCondition != null && !"".equals(unlessCondition)
&& testUnlessCondition()) {
if (text == null) { if (text == null) {
text = ""; text = "";
} else { } else {


Loading…
Cancel
Save