fork="true" 是什么意思?在 nant 脚本目标中做什么?

发布于 2024-10-02 04:50:47 字数 322 浏览 0 评论 0 原文

有什么区别

<target name="target_fork" description="with fork" fork="true">
</target>

<target name="target_nofork" description="no fork">
</target>

我一直认为这意味着只有当 fork 为 true 时,目标才会在调用其他目标或外部构建文件时返回并继续执行。但一些快速的 nant 测试脚本并不能证明这一点。

What is the difference between

<target name="target_fork" description="with fork" fork="true">
</target>

and

<target name="target_nofork" description="no fork">
</target>

I always thought it meant that the target would come back and continue execution when it calls other targets or external build files only if fork is true. But some quick nant test scripts are not proving this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灯角 2024-10-09 04:50:47

更新:

属性 fork=true 无效。

术语fork通常意味着您在任务(而不是您建议的目标)中运行的代码将在不同的进程(Java 术语中的虚拟机)中执行。

由任务的实现者(例如 NAnt 中的 NUnit 或 ANT 中的 Java 任务)来定义 fork 属性的含义。

Updated:

The property fork=true has no effect.

The term fork usually means that the code you run in a task, not target as you suggest, will execute in a different process (Virtual Machine in Java-lingo).

It is up to the implementer of a task, for instance NUnit in NAnt or the Java task in ANT, to define meaning of the fork property.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文