<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sky's blog

    我和我追逐的夢

    常用鏈接

    統計

    其他鏈接

    友情鏈接

    最新評論

    ivy中文參考文檔(15)-ant任務(3)-retrieve

    1) retrieve

        retrieve任務復制解析好的依賴到你的文件系統的任何位置。

        這是一個post resolve任務,帶有所有post resolve任務共有的所有的行為和屬性。

        從1.4起 這個任務甚至可以根據依賴解析的結果用實際應該存在的東西來同步目標目錄。這意味著如果設置sync為"true",ivy不僅將復制必要的文件,而且它還會刪除那些不再需要在那里的文件。

        同步實際上是刪除root目標目錄下不再是retrieve任務必須的所有文件和目錄。

        root目標目錄是 在目標正則表達式中的標示為第一級別的第一個標記的目錄。
        例如:
        pattern: lib/[conf]/[artifact].[ext]
        root: lib

    2) 屬性

    屬性描述必要
    pattern the pattern to use to copy the dependencies
    用來復制依賴的正則表達式
    No. 默認為 ${ivy.retrieve.pattern}
    ivypattern the pattern to use to copy the ivy files of dependencies since 1.3
    從1.3起用來復制依賴的ivy文件的正則表達式
    No. 默認不獲取依賴的ivy文件
    conf a comma separated list of the configurations to retrieve
    用于獲取的配置的列表,逗號分隔
    No.  默認為被最后一次resolve調用解析好的配置,或者在沒有顯示調用resoleve時的*
    sync true to synchronize the destination, false to just make a copy since 1.4
    從1.4起 true 同步目錄路徑,false僅僅復制
    No. 默認為 false
    type comma separated list of accepted artifact types since 1.4
    從1.4起 可接受的制品類型列表,逗號分隔
    No. 默認所有制品類型都被接受
    symlink true to create symbolic links, false to copy the artifacts. The destination of the symbolic links depends on the value of the useOrigin attribute (since 2.0)
    true 創建符號鏈接,false復制制品。符號鏈接的目的地取決于useOrigin屬性的值(從2.0起)
    No. 默認為 false
    settingsRef A reference to the ivy settings that must be used by this task (since 2.0)
    必須被這次任務使用的iry設置的引用
    No, 默認使用'ivy.instance'
    log the log setting to use during the resolve and retrieve process. (since 2.0)
    Available options are the same as for resolve when used to trigger resolve automatically (see postresolvetask), or the following for the retrieve process only:
    • default
    • the default log settings, where all usual messages are output to the console
    • quiet
    • disable all usual messages, making the whole retrieve process quiet unless errors occur
    No, defaults to 'default'.


    3) 示例

    1.
    <ivy:retrieve />
        使用默認參數獲取依賴。這通常獲取最后一次解析調用的所有依賴到lib目錄中。

    2.
    <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]"/>
        獲取最后一次解析調用的所有依賴到lib目錄中,依賴將分隔在按照組織命名的目錄中,每個conf目錄包含對應的不帶修訂版本的制品。

        例如,如果ivy文件聲明了兩個配置default和test,結果lib目錄將會像這樣:

    lib
      default
        commons-lang.jar
        commons-logging.jar
      test
        junit.jar
        注意如果一個依賴被兩個配置要求,它將被復制到兩個目錄中。這個依賴的下載將只在resolve的時候進行一次。

    3.
    <ivy:retrieve pattern="${lib.dir}/[conf]/[artifact].[ext]" sync="true" />
        和前面相同,但是開啟同步。

        例如,如果ivy文件聲明了兩個配置default和test,結果lib目錄將會像這樣:
    lib
      default
        commons-lang.jar
        commons-logging.jar
      test
        junit.jar
        現在假設commons-logging 不再是默認配置的一部分,然后新的retrieve調用將會產生如下結果:
    lib
      default
        commons-lang.jar
      test
        junit.jar
        如果不開啟同步,commons-logging將不會被這次調用刪除。

    4.
    <ivy:retrieve pattern="${lib.dir}/[type]/[artifact]-[revision].[ext]" conf="runtime"/>

        僅僅獲取配置runtime依賴到用制品類型命名的目錄中。結果lib目錄將類似這樣:

    lib
      jar
        commons-lang-1.0.jar
        looks-1.1.jar
      source
        looks-1.1.zip

    5.
    <ivy:retrieve organisation="foo" module="bar" inline="true" pattern="${my.install.dir}/[artifact].[ext]"/>

        解析并獲取模塊bar和它的依賴的最新版本到${my.install.dir}指出的目錄。

    posted on 2009-08-03 08:34 sky ao 閱讀(2699) 評論(0)  編輯  收藏 所屬分類: project building

    主站蜘蛛池模板: 国产成人久久精品亚洲小说| 亚洲熟女www一区二区三区| 亚洲熟伦熟女新五十路熟妇| 亚洲精品午夜国产VA久久成人| 亚洲AV无码久久精品狠狠爱浪潮 | 亚洲国色天香视频| 亚洲国产精品99久久久久久| 福利免费在线观看| 99久久精品日本一区二区免费| 午夜寂寞在线一级观看免费| 亚洲福利精品电影在线观看| 亚洲日韩区在线电影| 黄色免费网址在线观看| 日本人的色道免费网站| 国产成人精品日本亚洲专区| 中文字幕免费在线看电影大全| 国产亚洲精品美女久久久| 99国产精品免费观看视频| 又黄又爽的视频免费看| 亚洲欧洲国产成人精品| 好吊妞在线新免费视频| 亚洲系列中文字幕| 永久免费A∨片在线观看| 国产一级高清视频免费看| 亚洲一卡2卡3卡4卡国产网站| 免费看一区二区三区四区| 99人中文字幕亚洲区| 一级毛片全部免费播放| 77777亚洲午夜久久多人| 欧洲亚洲国产精华液| 午夜毛片不卡免费观看视频| 免费看又黄又爽又猛的视频软件| 最近中文字幕mv免费高清电影| 亚洲91av视频| 最近免费mv在线电影| 亚洲视频在线免费观看| 夭天干天天做天天免费看| 香蕉免费一级视频在线观看| 国产午夜亚洲不卡| a成人毛片免费观看| 亚洲熟妇av一区二区三区|