在EAS6的版本中,因為以前使用的是jdk1.4,那麼在發布的時候會出現問題。我們需要修改E:\kingdee630\eas\bos\BOSModular\bim\eclipse\plugins\com.kingdee.bos.bim_6.1.0\configs\ant目錄下面的兩個設定檔:1、把deploy.xml檔案中的<javac srcdir="${srctemp}" destdir="${dir.classes}" debug="on" nowarn="on" source="1.5" verbose="false" fork="false" target="1.5" failonerror="true" ><target name="compileWEB" description="編譯WEB相關內容" if="deployWEB"> <javac srcdir="${dir.web_src}" destdir="${dir.web_root}/WEB-INF/classes" debug="on" nowarn="on" source="1.5" verbose="true" fork="false" target="1.5" failonerror="true"> <classpath path="${dir.classes}"> <fileset dir="${dir.lib}"> <exclude name="src/**/*.*"/> <include name="sp/**/*.zip"/> <include name="sp/**/*.jar"/> <include name="**/*.jar"/> <include name="**/*.zip"/> </fileset> <fileset dir="${dir.web_root}/WEB-INF/lib"> <include name="**/*.jar"/> <include name="**/*.zip"/> </fileset> <fileset dir="${dir.project}/web/webRoot/WEB-INF/lib"> <include name="**/*.jar"/> <include name="**/*.zip"/> </fileset> </classpath> <compilerarg value="-Xlint:unchecked"/> </javac> <copy description="拷貝資源檔" todir="${dir.web_root}/WEB-INF/classes"> <fileset dir="${dir.web_src}"> <include name="**/*.properties"/> </fileset> </copy> </target>2 修改 build_metadate_jar.xml檔案<target description="編譯JAVA檔案" name="compile" depends="deploy"> <javac srcdir="${tempDir}/java" destdir="${tempDir}/classes" debug="off" noWarn="on" source="1.5" target="1.5" fork="true" memoryInitialSize="128m" memoryMaximumSize="1024m" failonerror="true" tempdir="${tempDir}"> <classpath> <fileset dir="${dir.lib}"> <include name="sp/**/*.zip"/> <include name="sp/**/*.jar"/> <include name="web/**/*.zip"/> <include name="web/**/*.jar"/> <include name="common/**/*.zip"/> <include name="common/**/*.jar"/> <include name="client/**/*.zip"/> <include name="client/**/*.jar"/> <include name="server/**/*.zip"/> <include name="server/**/*.jar"/> </fileset> </classpath> </javac> <copy todir="${tempDir}/classes"> <fileset dir="${tempDir}/java"> <include name="**/*.properties"/> </fileset> </copy> </target>在用部署工具的時候也可能出現同樣的錯誤,這時候只有修改publish_local_apusic.xml檔案即可總之一句話,就是把原來的1.4版本修改成1.5版本就好了
來源地址:http://blog.csdn.net/h249059945/article/details/7827658