我想尝试下面的事情。但它只对列表中的最后一个主机执行SCP任务。请帮助如何将SCP并行输入所有输入列表?
<for list="${scp.server}" param="tmphttpServer" trim="true" parallel="true">
<sequential>
<property name="httpServer" value="@{tmphttpServer}" />
<echo>${httpServer} </echo>
<scp todir="${scp.user.id}@${httpServer}:${scp.remote.dir}"
port="${scp.port}"
keyfile="${scp.keyfile}"
passphrase="${scp.passphrase}"
trust="${scp.trust}"
knownhosts="${scp.knownhosts}">
<fileset dir="${static.web.dir}">
</fileset>
</scp>
<var name="httpServer" unset="true"/>
</sequential>
</for>