Browse Source

closing

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@384202 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 19 years ago
parent
commit
1ad79cdf77
1 changed files with 2 additions and 7 deletions
  1. +2
    -7
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 2
- 7
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -38,6 +38,7 @@ import java.lang.reflect.InvocationTargetException;
import org.apache.tools.ant.taskdefs.Typedef;
import org.apache.tools.ant.taskdefs.Definer;
import org.apache.tools.ant.launch.Launcher;
import org.apache.tools.ant.util.FileUtils;

/**
* Component creation and configuration.
@@ -736,13 +737,7 @@ public class ComponentHelper {
} catch (IOException ex) {
throw new BuildException(ERROR_NO_TASK_LIST_LOAD);
} finally {
if (in != null) {
try {
in.close();
} catch (Exception ignore) {
// Ignore
}
}
FileUtils.close(in);
}
}



Loading…
Cancel
Save