From 4e97d0d8884998d9b42b3ca16acfa158e695e9a5 Mon Sep 17 00:00:00 2001 From: Nicolas Lalevee Date: Tue, 31 Jul 2012 08:28:16 +0000 Subject: [PATCH] Fix the test of the unless condition git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1367459 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Target.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/Target.java b/src/main/org/apache/tools/ant/Target.java index e121e36f9..35b40f8f7 100644 --- a/src/main/org/apache/tools/ant/Target.java +++ b/src/main/org/apache/tools/ant/Target.java @@ -529,7 +529,7 @@ public class Target implements TaskContainer { public boolean eval() throws BuildException { PropertyHelper propertyHelper = PropertyHelper.getPropertyHelper(getProject()); Object o = propertyHelper.parseProperties(condition); - return propertyHelper.testUnlessCondition(o); + return !propertyHelper.testUnlessCondition(o); } }