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"属性即可。
<javac destdir="classes" source="1.5" target="1.5" includeAntRuntime="false"
deprecation="false" optimize="false" failonerror="true">
<src path="src"/>
<classpath refid="lib"/>
</javac>