EXEC超时不能与MATLAB应用工作 [英] EXEC timeout not work with matlab application
问题描述
我用 EXEC
任务来打开的build.xml
文件MATLAB。我已经添加了 EXEC
任务超时终止一段时间后的任务。但问题是,MATLAB是开放的模式也建立在MATLAB,但超时后Exec任务不会终止。
I have used EXEC
task to open matlab in build.xml
file. I have added timeout in EXEC
task for terminate the task after some time. But problem is that, matlab is open and model is also building in matlab but after timeout the exec task not terminate.
<property name="BuildEngine.calc.matlabApp" value="C:\MATLAB\R2010bSP2\bin\matlab.exe"/>
<property name="modelProjectDirectory" value="${basedir}\..\${Config.ModelProject}"/>
<exec executable="${BuildEngine.calc.matlabApp}" dir="${modelProjectDirectory}" timeout="60000">
<arg value="-r"/>
<arg value="OutputResolvedParameters"/>
</exec>
1分钟后 EXEC
任务不会终止和MATLAB仍在运行。
after 1 min EXEC
task not terminate and matlab still running.
推荐答案
有一件事是肯定的:你还不能建立一个timout上的RTC构建:在<一个href=\"https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=106064\"相对=nofollow>增强106064 (你需要一个爵士帐户才能看到)被分流。
One thing is sure: you cannot yet set up a timout on an RTC build: the Enhancement 106064 (you need a jazz account to see it) is "triaged".
关于蚂蚁EXEC任务,尝试添加产卵= TRUE
属性:
如果你运行Ant作为一个后台进程(如蚂蚁和放大器;
),并使用&LT; EXEC&GT;
与产卵
任务设置为假
,您必须对派生进程提供明确的输入或因为它试图蚂蚁将暂停从标准输入读取。
If you run Ant as a background process (like
ant &
) and use the<exec>
task withspawn
set tofalse
, you must provide explicit input to the forked process or Ant will be suspended because it tries to read from the standard input.
这篇关于EXEC超时不能与MATLAB应用工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!