lqxue

          常用鏈接

          統(tǒng)計(jì)

          book

          tools

          最新評(píng)論

          tomcat 遠(yuǎn)程部署]

          1、tomcat-users.xml should include one more role, 'admin'..e.g.

          <?xml version='1.0' encoding='utf-8'?>
          <tomcat-users>
          <role rolename="admin"/>
          <role rolename="manager"/>
          <role rolename="tomcat"/>
          <role rolename="role1"/>
          <user username="admin" password="secret" roles="manager,admin"/>
          <user username="tomcat" password="tomcat" roles="tomcat"/>
          <user username="role1" password="tomcat" roles="role1"/>
          <user username="both" password="tomcat" roles="tomcat,role1"/>
          </tomcat-users>
          2、ant 腳本

          <target name="tomcatDeploy" depends="compile">
            
          <taskdef name="tdeploy" classname="org.apache.catalina.ant.DeployTask">
              
          <classpath refid="cp">
              
          </classpath>
            
          </taskdef>
            
          <tdeploy url="${tomcat.url}" username="${tomcat.username}" password="${tomcat.password}" path="${tomcat.path}" war="${dir.target}/${warFileName}" />
           
          </target>
           
          <target name="tomcatUndeploy" description="Remove web application">
            
          <taskdef name="tomcatUndeploy" classname="org.apache.catalina.ant.UndeployTask" classpathref="cp" />
            
          <tomcatUndeploy url="${tomcat.url}" username="${tomcat.username}" password="${tomcat.password}" path="${tomcat.path}"/>
            
          </target>

          posted on 2007-10-29 11:10 lqx 閱讀(680) 評(píng)論(0)  編輯  收藏


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 获嘉县| 汪清县| 昌图县| 兴国县| 嘉兴市| 屏东市| 郯城县| 禹州市| 南木林县| 横山县| 游戏| 兴隆县| 闽侯县| 涿鹿县| 西林县| 公安县| 万荣县| 公主岭市| 甘德县| 永安市| 罗平县| 浙江省| 沁水县| 珠海市| 甘德县| 方正县| 和林格尔县| 绥中县| 和顺县| 新巴尔虎右旗| 钟祥市| 芦山县| 门源| 伊金霍洛旗| 兴和县| 东乡| 石屏县| 镇安县| 金阳县| 乐昌市| 九台市|