lqxue

          常用鏈接

          統計

          book

          tools

          最新評論

          tomcat 遠程部署]

          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) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 澄江县| 富民县| 凉城县| 宝丰县| 博客| 长兴县| 临朐县| 临湘市| 冷水江市| 南澳县| 兴山县| 偏关县| 九江县| 江山市| 报价| 星座| 泸州市| 霍山县| 昌黎县| 淮南市| 报价| 宿州市| 阳西县| 夏河县| 庐江县| 林州市| 重庆市| 延寿县| 灵川县| 玉溪市| 澄城县| 怀来县| 平遥县| 丹阳市| 泗阳县| 宿迁市| 商洛市| 延长县| 山东省| 六枝特区| 陆丰市|