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

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

本文简介:


(5) 给出CLASSPATH的定义,引入相关的Library和项目编译生成的Java Classes


<path id="CLASSPATH">
<!--// Tomcat Libraries //-->
<fileset dir="${dir.appserver.tomcat.home}/bin">
<include name="*.jar"/>
</fileset>
<fileset dir="${dir.appserver.tomcat.home}/server/lib">
<include name="*.jar"/>
</fileset>
<fileset dir="${dir.appserver.tomcat.home}/common/lib">
<include name="*.jar"/>
</fileset>
<!--// OC4J Libraries
<fileset dir="${dir.appserver.oc4j.j2ee.home}">
<include name="*.jar"/>
</fileset>
<fileset dir="${dir.appserver.oc4j.j2ee.home}/lib">
<include name="*.jar"/>
</fileset>
//-->

<!--// Depended Libraries //-->
<pathelement location="${dir.project.lib}/abc.jar"/>
<pathelement location="${dir.project.lib}/AppServer.jar"/>
<pathelement location="${dir.project.lib}/AppServiceClient.jar"/>
<pathelement location="${dir.project.lib}/AppUtil.jar"/>
<pathelement location="${dir.project.lib}/xport.jar"/>
<pathelement location="${dir.project.lib}/jaxen-full.jar"/>
<pathelement location="${dir.project.lib}/jstl.jar"/>
<pathelement location="${dir.project.lib}/log4j-1.2.13.jar"/>
<pathelement location="${dir.project.lib}/ojdbc14.jar"/>
<pathelement location="${dir.project.lib}/saxpath.jar"/>
<pathelement location="${dir.project.lib}/standard.jar"/>

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

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

go top