Author: hibou
Date: Tue Jul 31 08:28:16 2012
New Revision: 1367459
URL: http://svn.apache.org/viewvc?rev=1367459&view=rev
Log:
Fix the test of the unless condition
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/Target.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/Target.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Target.java?rev=1367459&r1=1367458&r2=1367459&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/Target.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/Target.java Tue Jul 31
08:28:16 2012
@@ -529,7 +529,7 @@ public class Target implements TaskConta
public boolean eval() throws BuildException {
PropertyHelper propertyHelper =
PropertyHelper.getPropertyHelper(getProject());
Object o = propertyHelper.parseProperties(condition);
- return propertyHelper.testUnlessCondition(o);
+ return !propertyHelper.testUnlessCondition(o);
}
}