Ant在eclipse中的build.xml的配置

Ant在eclipse中的build.xml的配置
2006-09-24 12:08
<?xml version="1.0" ?>
- < project name =" webmodulebuilder " default =" deploy " basedir =" . ">
<!--
 set global properties for this build 
  -->
<!--
 发布WEB路径 
  -->
  < property name =" DEPLOY_PATH " value =" C:/Tomcat 5.5/webapps/jieshengda " />
<!--
 源WEB路径 
  -->
  < property name =" WEB_PATH " value =" D:/EclipseWork/jiedasheng/WebRoot " />
<!--
 源编译的jar包路径 
  -->
  < property name =" JAR_PATH " value =" D:/EclipseWork/jiedasheng/WebRoot/WEB-INF/lib " />
<!--
 源java文件路径 
  -->
  < property name =" SCR_PATH " value =" D:/EclipseWork/jiedasheng/src " />
<!--
 源class文件路径 
  -->
  < property name =" CLASS_PATH " value =" D:/EclipseWork/jiedasheng/WebRoot/WEB-INF/classes " />
<!--
 定义classpath 
  -->
- < path id =" LIB_CLASS_PATH ">
  < fileset file =" ${JAR_PATH}/*.jar " />
  < pathelement path =" ${CLASS_PATH} " />
  </ path >
<!--
 初试化 
  -->
- < target name =" init ">
  < mkdir dir =" ${DEPLOY_PATH} " />
  < mkdir dir =" ${DEPLOY_PATH}/WEB-INF " />
  < mkdir dir =" ${DEPLOY_PATH}/WEB-INF/classes " />
  < mkdir dir =" ${DEPLOY_PATH}/WEB-INF/lib " />
  </ target >
<!--
 编译类 
  -->
- < target name =" compile " depends =" init " description =" compile the source files ">
  < mkdir dir =" ${CLASS_PATH} " />
- < javac srcdir =" ${SCR_PATH} " destdir =" ${CLASS_PATH} ">
  < classpath refid =" LIB_CLASS_PATH " />
  </ javac >
  </ target >
<!--
 Copy发布
  -->
- < target name =" deploy " depends =" init,compile ">
- < copy todir =" ${DEPLOY_PATH} ">
- < fileset dir =" ${WEB_PATH} ">
  < include name =" **/*.* " />
  < exclude name =" **/jsp_servlet/*.class " />
  < exclude name =" **/build.xml " />
  < exclude name =" **/deploy.xml " />
  < exclude name =" **/build.properties " />
  < exclude name =" **/servers.xml " />
  < exclude name =" **/targets.xml " />
  < exclude name =" **/*.war " />
  </ fileset >
  </ copy >
  </ target >
  </ project >
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值