????ftp?????STAX????????????

????5??????FTP?????STAX???

    <process>
      <location>'local'</location>
      <command>'ftp'</command>
      <parms>'-s:ftpSample.conf'</parms>
      <workdir>'C:/STAF'</workdir>
    </process>

process??????????STAF????????(process)??location????????????????????command????????е???????parms??????????????????workdir??????????е????????

???FTP?????STAX???????????????STAX?????????FTP????????

3.2 CVS????

??FTP?????CVS????????????????е???????????CVS??????????Э?鯔?????CVS?????????????????????????????????????CVS???????????????????????????????μ????????CVS????:
cvs -d :ext:username@cvs.ibm.com:/cvsroot/ checkout -d directory modulename.

???????CVS????????????????CVS?????STAX??????£?

????6??????FTP?????STAX???

    <process>
      <location>'local'</location>
      <command>'cvs'</command>
      <parms>'-d :ext:username@cvs.ibm.com:/cvsroot/ checkout -d directory modulename'</parms>
      <workdir>'C:/CVS'</workdir>
      <stdout>'C:/CVS/cvsupdate.log'</stdout>
    </process>

????? 5 ???????????? 6 ?????stdout ?????????????????? cvs ?????????? cvsupdate.log ?У??????????? cvs ??????е?????????

3.3 ???????????

?? CVS ?? FTP ????????????????????????????????????????????????? STAF ???????????????? STAX ???????

???? 7??????????? STAX ???

    <script> directoryList = ['CVSDirectory'?? 'FTPDirectory'] </script>
      <iterate var = "directory" in="directoryList">
        <testcase name = "'sourceCopy'">
          <sequence>
            <stafcmd>
              <location>'local'</location>
              <service>'fs'</service>
              <request>'copy DIRECTORY C:/Source/%s TODIRECTORY /root/build/%s TOMACHINE
                buildserver RECURSE KEEPEMPTYDIRECTORIES'  % directory % directory</request>
            </stafcmd>
          </sequence>
        </testcase>
    </iterate>

???? 7 ???? CVS ?? FTP ?????????????С?script ???????????????? directoryList??????????????????????? CVS ??????? FTP ????iterate ????????????????????? CVS ???? FTP ?????????????????????С? stafcmd ??????? STAF ????????????????? FS?????????????copy DIRECTORY ????????????????????????????????С? ?????????????????????????????????????????????????? fs delete entry ???????????е??????

???????????????????????????o???????б????????????????????????????????????? /root/build/build.sh????????????????????? STAX ???????? 8 ?????