|
|
@@ -23,6 +23,7 @@ import java.io.IOException; |
|
|
|
import org.apache.tools.ant.BuildException; |
|
|
|
import org.apache.tools.ant.ProjectComponent; |
|
|
|
import org.apache.tools.ant.Task; |
|
|
|
import org.apache.tools.ant.util.FileUtils; |
|
|
|
|
|
|
|
/** |
|
|
|
* Logs standard output and error of a subprocess to the log system of ant. |
|
|
@@ -59,12 +60,7 @@ public class LogStreamHandler extends PumpStreamHandler { |
|
|
|
*/ |
|
|
|
public void stop() { |
|
|
|
super.stop(); |
|
|
|
try { |
|
|
|
getErr().close(); |
|
|
|
getOut().close(); |
|
|
|
} catch (IOException e) { |
|
|
|
// plain impossible |
|
|
|
throw new BuildException(e); |
|
|
|
} |
|
|
|
FileUtils.close(getErr()); |
|
|
|
FileUtils.close(getOut()); |
|
|
|
} |
|
|
|
} |