整理一个ANT在J2EE项目中的应用,含预编译JSP和打包WAR/EAR文件![6]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:


(7) 编译Java Source

<target name="src_compile" depends="init">
<!--// compile the Java source //-->
<javac srcdir="${dir.project.src}"
destdir
="${dir.project.compile}"
encoding
="${opt.compile.encoding}"
source
="${opt.compile.source}"
target
="${opt.compile.source}"
deprecation
="${opt.compile.deprecation}"
debug
="${opt.compile.debug}"
optimize
="{opt.compile.optimize}" >
<classpath refid="CLASSPATH"/>
<include name="**/*.java"/>
</javac>
<!--// copy the classpath resources //-->
<copy todir="${dir.project.compile}">
<fileset dir="${dir.project.src}">
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>

本文关键:整理一个ANT在J2EE项目中的应用,含预编译JSP和打包WAR/EAR文件!
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top