ant警告:“’includeantruntime’未设置”

我收到以下警告:

[javac]build.xml:9:警告:未设置“includeantruntime”,
默认为build.sysclasspath=last;对于可重复的生成,将设置为false

这是什么意思

蚂蚁运行时

只需设置includeantruntime=“false”

<javac includeantruntime=“false”…&gt&lt/javac>

如果您必须多次使用 javac 任务,您可能需要考虑使用PreSetDef来定义您自己的javac——始终设置includeantruntime=“false”的任务

其他细节

http://www.coderanch.com/t/503097/tools/warning-includeantruntime-was-not-set

那是由一个不正常的特征引起的
在Ant1.8中介绍。只需添加一个
该名称对javac的属性
任务,将其设置为false,然后忘记它
曾经发生过

http://ant.apache.org/manual/Tasks/javac.html

是否包括Ant运行时
类路径中的库;默认值
为是,除非build.sysclasspath为
设置通常最好将此设置为
false,因此脚本的行为不正确
对所处环境敏感
它正在运行

发表评论