本文整理了Java中org.apache.tools.ant.taskdefs.Java.setError()
方法的一些代码示例,展示了Java.setError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Java.setError()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Java
类名称:Java
方法名:setError
[英]Set the File to which the error stream of the process is redirected.
[中]设置进程错误流重定向到的文件。
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
*/
@Override
public void setOutputFile(File outputFile)
{
this.java.setOutput(outputFile);
this.java.setError(outputFile);
// Don't create empty log files!
// Output and error streams are redirected to same file. Creating of empty files
// would overwrite content in log file written by the other output stream!
// See CARGO-1423.
RedirectorElement redirector = new RedirectorElement();
redirector.setCreateEmptyFiles(false);
this.java.addConfiguredRedirector(redirector);
}
代码示例来源:origin: net.sourceforge.purrpackage/purrpackage
getJava().createArg().setValue(builder.getCommandLineFile());
getJava().setOutput(new File("purrPackageReporter.out"));
getJava().setError(new File("purrPackageReporter.err"));
transferCoberturaDataFileProperty(getJava());
if (getJava().executeJava() != 0) {
内容来源于网络,如有侵权,请联系作者删除!