赞
踩
在eclipse运行正常,ant打包时运行却报错。
<!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 -->
<!-- 解决ant打包spring参数注入问题 debug="true" encoding="utf-8"-->
<target name="compile" depends="clean">
<javac srcdir="${basedir}/src" destdir="${basedir}/build" includeantruntime="false"
debug="true" encoding="utf-8">
<classpath refid="project.lib">
</classpath>
</javac>
</target>
在编译时增加debug支持:debug=”true”
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。