1

MQFTEのpostdstおよびpresrc呼び出しでantscriptを呼び出すことは可能ですか?

4

1 に答える 1

2

次に例を示します。

<request version="4.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd"> 
 <managedTransfer> 
  <originator> 
      <hostName>$hostName</hostName> 
      <userID>$userID</userID> 
    </originator> 
    <sourceAgent QMgr="$sourceQM" agent="$sourceAgent"/> 
    <destinationAgent QMgr="$destQM" agent="$destAgent"/> 
    <transferSet priority="5"> 
      <metaDataSet> 
        <metaData key="some_key">Some value</metaData> 
      </metaDataSet> 
      <postSourceCall> 
        <command name="example.xml" retryCount="0" retryWait="0" successRC="0" type="antscript"> 
          <property name="ant.FILEPATH" value="$filepath"/> 
          <property name="antSrcAgent"  value="$sourceAgent"/> 
        </command> 
      </postSourceCall> 
      <item checksumMethod="MD5" mode="binary"> 
        <source disposition="delete" recursive="false"> 
          <file>$filepath</file> 
        </source> 
        <destination exist="error" type="directory"> 
          <file>$destFile</file> 
        </destination> 
      </item> 
    </transferSet> 
    <job> 
      <name>Example FTE job</name> 
    </job> 
  </managedTransfer> 
</request>

antスクリプトに渡されるプロパティは任意の名前です。その方法で任意のプロパティを渡すことができます。postSourceCallを使用しましたが、postDest、preSourceなどに変更できます。

于 2011-05-12T16:13:31.550 に答える