【问题标题】:mq fte and ant scriptmq fte 和 ant 脚本
【发布时间】:2011-03-25 09:38:57
【问题描述】:

我们可以在“presrc”或“postsrc”调用中使用 globmapper 吗? 如果可以,怎么用?

【问题讨论】:

  • 我一直在推迟回答这个问题,希望有人能举个例子。我有一台新的笔记本电脑,还没有重建我的 FTE 沙盒环境,所以我不能做点什么。由于没有回复,我至少确认可以这样做。

标签: ant websphere-mq-fte


【解决方案1】:

“presrc”或“postsrc”调用可以运行任何有效的 Ant 脚本,所以简短的回答是“是”。

希望有人会回复示例代码以提供更长的答案。 :-)

【讨论】:

    【解决方案2】:

    参考样本:

    <fte:filemove src="${source.agent}@${source.qmgr}" dst="${destination.agent}@${destination.qmgr}" rcproperty="copy.result">
    <fte:presrc command="antfile.xml" type="antscript" retryCount="2" retryWait="30" successRC="0">
        <property name="source.filename" value="${trigger.filename}"/>
        <property name="source_path" value="${source.path}"/>
        <property name="source_agent" value="${source.agent}"/>
        <property name="source_qmgr" value="${source.qmgr}"/>
        <property name="source_archive_path" value="${archive.path}"/>
    </fte:presrc>
    <fte:filespec srcfilespec="${source.path}/${trigger.filename}" dstfile="${destination.path}/${trigger.filename}" overwrite="true"/>    
    <fte:postdst command="antfile.xml" type="antscript" retryCount="2" retryWait="30" successRC="0">
        <property name="destination.filename" value="${trigger.filename}"/>
        <property name="destination_path" value="${destination.path}"/>
        <property name="destination_agent" value="${destination.agent}"/>
        <property name="destination_qmgr" value="${destination.qmgr}"/>
    </fte:postdst> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多