该问题是由于在build.xml中,对类文件编译时,未开启debug,做稍许修改便可解决该问题;
<?xml version="1.0" encoding="UTF-8"?>
<project name="nmsqlInterface" default="jar" basedir=".">
<property environment="conf"/>
<property name="conf" location="conf" />
<property name="jar" location="jar" />
<path id="project.class.path">
<pathelement path="${basedir}/build" />
<fileset dir="${basedir}/lib">
<include name="**/*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${basedir}/build" />
</target>
<target name="compile" depends="clean">
<mkdir dir="${basedir}/build/classes" />
<javac srcdir="${basedir}/src" destdir="${basedir}/build/classes" debug="on" >
<classpath refid="project.class.path" />
</javac>
<copy todir="${basedir}/build/classes">
<fileset dir="${conf}" includes="**/*.*" />
</copy>
<copy todir="${basedir}/build/classes/lib">
<fileset dir="${jar}" includes="**/*.*" />
</copy>
</target>
<!--
<target name="run" depends="compile">
<java jar="${project.class.path}" fork="true">
<classpath>
<pathelement path="${basedir}/build/classes" location="">
</pathelement>
</classpath>
</java>
</target>
-->
<target name="jar" depends="compile">
<!--
<pathconvert property="mf.classpath" pathsep="${basedir}/build/classes">
<path refid="classpath" />
<flattenmapper />
</pathconvert>
-->
<jar destfile="interface.jar" basedir="${basedir}/build/classes">
<manifest>
<attribute name="Main-class" value="com.test.DataExportService" />
<attribute name="Class-Path" value="lib/log4j-1.2.15.jar "/>
</manifest>
</jar>
</target>
</project>