通过Cargo Ant任务进行远程Tomcat部署

我试图使用Cargo Ant任务版本1.0.6将WAR文件部署到远程Tomcat服务器。据我所知,我必须将容器类型设置为
remote
,配置类型设置为
runtime
。但是,当我运行它时,我收到以下错误消息:
You must specify either a [home] attribute pointing to the location where the Tomcat 6.x Remote is installed, or a nested [zipurlinstaller] element
这个错误信息对我来说没有意义,因为我不想设置
home
(它位于不同的服务器上)而且我不想从URL(
zipurlinstaller
)下载Tomcat,因为我已经安装了在我的服务器上。我认为使用类型
remote
会阻止在
home
zipurlinstaller
之间进行选择。我在这里错过了一个特定的参数吗? 这是我的Ant代码:
<taskdef resource="cargo.tasks">
  <classpath>
    <pathelement location="${cargo-uberjar}"/>
    <pathelement location="${cargo-antjar}"/>
  </classpath>
</taskdef>

<target name="cargostart" depends="war">
  <cargo containerId="tomcat6x" type="remote" action="start" wait="false">
    <configuration type="runtime">
      <property name="cargo.tomcat.manager.url" value="http://someserver:8080/manager"/>
      <property name="cargo.remote.username" value="username"/>
      <property name="cargo.remote.password" value="password"/>
      <deployable type="war" file="${mywarfile}"/>
    </configuration>
  </cargo>
</target>
    
已邀请:
长话短说明Cargo版本1.0.6不支持通过Ant任务进行远程部署。但是,1.1.0将支持它,将在未来几周内发布。您可以在Cargo用户邮件列表中阅读有关此主题的讨论。 Jira机票CARGO-962解决了这个问题。     

要回复问题请先登录注册