spring 以Ant Build方式运行build.xml文件,报warning: 'includeantruntime' was not set, defaulting to bu
Posted 婧児_实践,实践,再实践!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring 以Ant Build方式运行build.xml文件,报warning: 'includeantruntime' was not set, defaulting to bu相关的知识,希望对你有一定的参考价值。
Buildfile: F:\\experience\\spring_pdf\\sourcecode\\example1\\build.xml compile: [javac] F:\\experience\\spring_pdf\\sourcecode\\example1\\build.xml:25: warning: \'includeantruntime\' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds run: [java] 十一月 01, 2016 12:40:15 上午 com.openv.spring.HelloWorldClient main [java] 信息: "Hello World!" BUILD SUCCESSFUL Total time: 812 milliseconds
只需要根据提示在javac任务中添加includeAntRuntime="false"属性即可。
1 <javac destdir="classes" source="1.5" target="1.5" includeAntRuntime="false" 2 deprecation="false" optimize="false" failonerror="true"> 3 <src path="src"/> 4 <classpath refid="lib"/> 5 </javac>
以上是关于spring 以Ant Build方式运行build.xml文件,报warning: 'includeantruntime' was not set, defaulting to bu的主要内容,如果未能解决你的问题,请参考以下文章
运行 ANT 脚本时出现 DITA OpenToolkit 2.1.1 build.xml “BUILD FAILED”错误