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); } }