蚂蚁警告:"'includeantruntime“没有设置" [英] ant warning: "'includeantruntime' was not set"

查看:273
本文介绍了蚂蚁警告:"'includeantruntime“没有设置"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下警告:

[javac] build.xml:9: warning: 'includeantruntime' was not set, 
defaulting to build.sysclasspath=last; set to false for repeatable builds

这是什么意思?

推荐答案

只需设置 includeantruntime =FALSE

<javac includeantruntime="false" ...>...</javac>

如果你必须使用的javac -task多次,你可能要考虑使用的 preSetDef 来定义自己的的javac - 任务总是将 includeantruntime =FALSE

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".

从<一个href=\"http://www.$c$cranch.com/t/503097/tools/warning-includeantruntime-was-not-set\">http://www.$c$cranch.com/t/503097/tools/warning-includeantruntime-was-not-set:

这是一个不好的特性引起的
  在蚂蚁1.8引入的。只需添加一个
  该名称的属性给javac
  任务时,它设置为false,而忘记了它
  发生过。

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.

从<一个href=\"http://ant.apache.org/manual/Tasks/javac.html\">http://ant.apache.org/manual/Tasks/javac.html:

是否包含在Ant运行时
  库在classpath中;默认
  为yes,除非build.sysclasspath是
  组。通常最好将它设置为
  假使脚本的行为不
  对环境敏感,其中
  它运行。

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.

这篇关于蚂蚁警告:&QUOT;'includeantruntime“没有设置&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆