蚂蚁警告:“'includeantruntime' 未设置" [英] ant warning: "'includeantruntime' was not set"
问题描述
我收到以下警告:
[javac] build.xml:9: 警告:'includeantruntime' 未设置,默认为 build.sysclasspath=last;为可重复构建设置为 false
这是什么意思?
Ant Runtime
只需设置includeantruntime="false"
:
<javac includeantruntime="false" ...>...</javac>
如果您必须多次使用 javac
-task,您可能需要考虑使用 PreSetDef
定义您自己的 javac
任务,该任务始终设置 includeantruntime="false"
.>
其他详细信息
来自 http://www.coderanch.com/t/503097/tools/warning-includeantruntime-was-not-set:
<块引用>这是由错误特征引起的在 Ant 1.8 中引入.只需添加一个该名称的属性到 javac任务,将其设置为false,然后忘记它曾经发生过.
来自 http://ant.apache.org/manual/Tasks/javac.html:
<块引用>是否包含 Ant 运行时类路径中的库;默认值是的,除非 build.sysclasspath 是放.通常最好将其设置为false 所以脚本的行为不是对环境敏感它正在运行.
I receive the following warning:
[javac] build.xml:9: warning: 'includeantruntime' was not set,
defaulting to build.sysclasspath=last; set to false for repeatable builds
What does this mean?
Ant Runtime
Simply set includeantruntime="false"
:
<javac includeantruntime="false" ...>...</javac>
If you have to use the javac
-task multiple times you might want to consider using PreSetDef
to define your own javac
-task that always sets includeantruntime="false"
.
Additional Details
From http://www.coderanch.com/t/503097/tools/warning-includeantruntime-was-not-set:
That's caused by a misfeature introduced in Ant 1.8. Just add an attribute of that name to the javac task, set it to false, and forget it ever happened.
From http://ant.apache.org/manual/Tasks/javac.html:
Whether to include the Ant run-time libraries in the classpath; defaults to yes, unless build.sysclasspath is set. It is usually best to set this to false so the script's behavior is not sensitive to the environment in which it is run.
这篇关于蚂蚁警告:“'includeantruntime' 未设置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!