zoukankan      html  css  js  c++  java
  • How to use For loop in CruiseControl.net

    Looping through parameter values in Cruisecontrol.net

    Example >>>>>>>>>>

      <cb:define name="ParentFolders">
        <!--Define parent folders-->
        ['A', 'B', 'C']
      </cb:define>
    
      <cb:define name="ChildFolders">
        <!--Define child folders-->
        ['aa', 'ab', 'ba', 'bb', 'cc']
      </cb:define>

    <!-- Loop through $(ParentFolders)$(ChildFolders), do the task only if $(ParentFolders)$(ChildFolders) exists.--> <cb:for-each iterator-name="i" iterator-expr="$(ParentFolders)"> <cb:for-each iterator-name="j" iterator-expr="$(ChildFolders)"> <cb:scope ParentFolder="$(i)" ChildFolder="$(j)"> <conditional> <conditions> <folderExistsCondition> <folder>$(ParentFolder)$(ChildFolder)</folder> </folderExistsCondition> </conditions> <tasks> <!-- Output folder name--> <exec> <executable>cmd.exe</executable> <buildArgs>/c output.bat $(ParentFolder) $(ChildFolder)</buildArgs> <baseDirectory>$(WorkDirectory)</baseDirectory> </exec> </tasks> </conditional> </cb:scope> </cb:for-each> </cb:for-each>
  • 相关阅读:
    hdu1066之数学题
    hdu1065计算几何
    hdu1060
    hdu1056
    appium安装说明
    LR安装说明
    网络编程
    读写excel
    dom
    HTML
  • 原文地址:https://www.cnblogs.com/cindy-hu-23/p/4920279.html
Copyright © 2011-2022 走看看