首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

ant warning 'includeantruntime' was not set.

2012-12-28 
ant warning includeantruntime was not set...Ant script gives the following warning msg when it ru

ant warning 'includeantruntime' was not set...
Ant script gives the following warning msg when it runs

warning 'includeantruntime' was not set , defaulting to build.sysclasspath=last; set to false for repeatable builds.

Resolution: 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.

<target name="compile" depends="clean">
<mkdir dir="build/classes"/>
<javac srcdir="src" destdir="build/classes" includeantruntime="false"/>
</target>

热点排行