idea使用ant配置_如何使用idea调试tomcat中使用ant发布项目?

一般用ant部署web项目,有弊端,每次修改代码都要重新build一下,生产个war包放入tomcat webapp目录下。多累啊。

3种方式部署war包

1.生成一个war包在部署时候选择

2.貌似build.xml写好了,就ok

context.xml添加

build properties属性文件================================#tomcat properties

tomcat.dir=D:/tools/javatool/apache-tomcat-6.0.20

tomcat.webapps=D:/tools/javatool/apache-tomcat-6.0.20/bin

tomcat.manager.url=http://localhost:8008/manager

tomcat.manager.username=admin

tomcat.manager.password=admin

#Jreport source

JRS.source=D:/cheping/Server/bin/distribute/demojava.war

#context properties

JRS.context=demojava

build.xml文件如下:

classname="org.apache.catalina.ant.DeployTask"

classpathref="lib.path"

/>

classname="org.apache.catalina.ant.UndeployTask"

classpathref="lib.path"

/>

classpathref="lib.path"

/>

3.IntelliJ IDEA支持直接部署。用什么ant

http://www.iteye.com/topic/1125251

2012年9月14日 22:47

2207

1

3

134

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值