spring 以Ant Build方式运行build.xml文件,报warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds 的解决办法

 

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>

 

posted @ 2016-11-01 00:41  婧児  Views(1209)  Comments(0Edit  收藏  举报