本文整理了Java中org.apache.tools.ant.taskdefs.Execute.setStreamHandler()
方法的一些代码示例,展示了Execute.setStreamHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execute.setStreamHandler()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Execute
类名称:Execute
方法名:setStreamHandler
[英]Set the stream handler to use.
[中]设置要使用的流处理程序。
代码示例来源:origin: org.apache.ant/ant
/**
* Creates a new execute object.
*
* @param streamHandler the stream handler used to handle the input and
* output streams of the subprocess.
* @param watchdog a watchdog for the subprocess or <code>null</code>
* to disable a timeout for the subprocess.
*/
public Execute(ExecuteStreamHandler streamHandler,
ExecuteWatchdog watchdog) {
setStreamHandler(streamHandler);
this.watchdog = watchdog;
// By default, use the shell launcher for VMS
//
if (Os.isFamily("openvms")) {
useVMLauncher = false;
}
}
代码示例来源:origin: org.apache.ant/ant
setupRedirector();
redirectorElement.configure(redirector, null);
exe.setStreamHandler(redirector.createHandler());
exe.setStreamHandler(redirector.createHandler());
代码示例来源:origin: org.apache.ant/ant
exe.setStreamHandler(redirector.createHandler());
exe.setStreamHandler(redirector.createHandler());
代码示例来源:origin: com.carrotsearch.randomizedtesting/junit4-ant
execute.setVMLauncher(true);
execute.setWorkingDirectory(cwd.toFile());
execute.setStreamHandler(streamHandler);
execute.setNewenvironment(newEnvironment);
if (env.getVariables() != null)
代码示例来源:origin: randomizedtesting/randomizedtesting
execute.setVMLauncher(true);
execute.setWorkingDirectory(cwd.toFile());
execute.setStreamHandler(streamHandler);
execute.setNewenvironment(newEnvironment);
if (env.getVariables() != null)
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mobility-antext
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(commandLine));
if (classPath != null && isClassFileAvailable()) exec.setStreamHandler(new RunTask.StackTraceTranslatorHandler(getProject().getBaseDir(), classPath.list()));
log(Bundle.getMessage("MSG_ExecCmd", commandLine), Project.MSG_VERBOSE); // No I18N
int i = 0;
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(listCommandLine));
exec.setStreamHandler(new RunTask.ListStreamHandler());
log(Bundle.getMessage("MSG_ExecCmd", listCommandLine), Project.MSG_VERBOSE); // No I18N
try {
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(otaRunCommandLine));
if (classPath != null && isClassFileAvailable()) exec.setStreamHandler(new RunTask.StackTraceTranslatorHandler(getProject().getBaseDir(), classPath.list()));
log(Bundle.getMessage("MSG_ExecCmd", otaRunCommandLine), Project.MSG_VERBOSE); // No I18N
try {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-j2me-common-ant
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(commandLine));
if (classPath != null && isClassFileAvailable()) exec.setStreamHandler(new RunTask.StackTraceTranslatorHandler(getProject().getBaseDir(), classPath.list()));
log(Bundle.getMessage("MSG_ExecCmd", commandLine), Project.MSG_VERBOSE); // No I18N
int i = 0;
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(listCommandLine));
exec.setStreamHandler(new RunTask.ListStreamHandler());
log(Bundle.getMessage("MSG_ExecCmd", listCommandLine), Project.MSG_VERBOSE); // No I18N
try {
exec.setVMLauncher(true);
exec.setCommandline(Commandline.translateCommandline(otaRunCommandLine));
if (classPath != null && isClassFileAvailable()) exec.setStreamHandler(new RunTask.StackTraceTranslatorHandler(getProject().getBaseDir(), classPath.list()));
log(Bundle.getMessage("MSG_ExecCmd", otaRunCommandLine), Project.MSG_VERBOSE); // No I18N
try {
内容来源于网络,如有侵权,请联系作者删除!