将
- <targetname="compile"depends="init">
- <javacsrcdir="${src}"destdir="${dest}"/>
- </target>
修改为
- <targetname="compile"depends="init">
- <javacsrcdir="${src}"destdir="${dest}"includeantruntime="on"/>
- </target>
也就是添加includeantruntime="on"。
- <javacsrcdir="${src.dir}"excludes="org/openremote/webconsole/client/**"includes="**"encoding="utf-8"destdir="${web-inf.dir}/classes"source="1.5"target="1.5"nowarn="true"debug="true"debuglevel="lines,vars,source"includeantruntime="false">