Browse Source

Removing a redundant check.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270094 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 23 years ago
parent
commit
3bad92b009
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/taskdefs/ExecTask.java

+ 2
- 3
src/main/org/apache/tools/ant/taskdefs/ExecTask.java View File

@@ -194,9 +194,8 @@ public class ExecTask extends Task {
*/ */
protected void maybeSetResultPropertyValue(int result) { protected void maybeSetResultPropertyValue(int result) {
String res=Integer.toString(result); String res=Integer.toString(result);
if(resultProperty!=null
&& project.getProperty(resultProperty) == null) {
project.setNewProperty(resultProperty,res);
if(resultProperty!=null) {
project.setNewProperty(resultProperty,res);
} }
} }


Loading…
Cancel
Save