???? 8?????????? STAX ???

    <stafcmd>
      <location>'buildserver'</location>
      <service>'process'</service>
      <request>'start command "/root/build/build.sh" username "root" password "password"
        workdir "/root/build" wait stdout /root/build/build.log'</request>
    </stafcmd>

???? 8 ???????? root ??????????б????? build.sh?????????????????? build.log ?У??????????????е?????????????????????? build.sh ????Щ??·?????????????????·???????????????????? workdir ?????????? build.sh ????????????????? /root/build ???????? build.sh ???

3.4 ???????

???°????????????????????????°????????????????????????????????????????????????????????ò??????????????°????????°????????????????????? STAX ???????? 9 ?????

???? 9?????°????

    <script> serverList = ['deployServer'?? 'testServer'] </script>
    <iterate var = "server" in="serverList">
      <testcase name = "'buildCopy'">
        <if expr="server != 'deployServer'">
          <stafcmd>
            <location>'buildserver'</location>
            <service>'fs'</service>
            <request>'copy DIRECTORY /root/build/result TODIRECTORY /root/build/result
              TOMACHINE %s RECURSE KEEPEMPTYDIRECTORIES'  % server </request>
          </stafcmd>
        <else>
          <stafcmd>
            <location>'buildserver'</location>
            <service>'fs'</service>
            <request>'copy DIRECTORY /root/build/result TODIRECTORY C:/build/result
              TOMACHINE %s RECURSE KEEPEMPTYDIRECTORIES'  % server </request>
          </stafcmd>
        </else>
        </if>
      </testcase>
    </iterate>

????9??????ж???????ж????????????????????????????????????·?????????????????????? if-else ??????????????????????????? windows ?? linux ????????????????? ?????????μ?????????????д?????????????????????????????????????????????????????? if-else ????????????????????

???????? STAX ???????? 10 ?????

???? 10?????????

    <sequence>
      <stafcmd>
        <location>'deployServer'</location>
        <service>'process'</service>
        <request>'start command "C:/build/deploy.bat > deploy.log" username "Administrator"
          password "password" workdir "C:/build" wait '</request>
      </stafcmd>
      <stafcmd>
        <location>'testServer'</location>
        <service>'process'</service>
        <request>'start command "/root/build/runtest.sh" username "root" password "password"
          workdir "/root/build" wait stdout /root/build/runtest.log'</request>
      </stafcmd>
    </sequence>

???? 10 ???? Windows ?? Linux ????????????????????????? Windows ?????????> deploy.log???????????????? Linux ????????? stdout ??????????????????????????????????

???????????????????°???????????????????????????????????????????????????????????????????????????д??????????STAX????? ???????????????????Щ??????????????????′????????????е?????????????????????????????????????????????????е????????????? CruiseControl ??????????????? CVS ??????????????У???????????????????????????????