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

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

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

    Sky's blog

    我和我追逐的夢

    常用鏈接

    統計

    其他鏈接

    友情鏈接

    最新評論

    ivy中文參考文檔(12)-單獨使用

        1) 單獨使用

        ivy可以非常容易的作為一個單獨的程序使用。你所需要的只是一個java1.4+的運行環境(JRE)!

        這是如何調用它的例子:

    java -jar ivy.jar -?

        它將實現類似這樣的在線幫助:

    ==== settings options
     -settings 
    <settingsfile>     use given file for settings
     -cache 
    <cachedir>            use given directory for cache
     -novalidate                  do not validate ivy files against xsd
     -m2compatible                use maven2 compatibility

    ==== resolve options
     -ivy 
    <ivyfile>               use given file as ivy file
     -dependency 
    <organisation> <module> <revision>
                                  use this instead of ivy file to do the rest of the
                                   work with this as a dependency.
     -confs 
    <configurations>      resolve given configurations

    ==== retrieve options
     -retrieve 
    <retrievepattern>  use given pattern as retrieve pattern
     -sync                        use sync mode for retrieve

    ==== cache path options
     -cachepath 
    <cachepathfile>   outputs a classpath consisting of all dependencies
                                   in cache (including transitive ones) of the given
                                   ivy file to the given cachepathfile

    ==== deliver options
     -deliverto 
    <ivypattern>      use given pattern as resolved ivy file pattern

    ==== publish options
     -publish 
    <resolvername>      use given resolver to publish to
     -publishpattern 
    <artpattern> use given pattern to find artifacts to publish
     -revision 
    <revision>         use given revision to publish the module
     -status 
    <status>             use given status to publish the module

    ==== http auth options
     -realm 
    <realm>               use given realm for HTTP AUTH
     -host 
    <host>                 use given host for HTTP AUTH
     -username 
    <username>         use given username for HTTP AUTH
     -passwd 
    <passwd>             use given password for HTTP AUTH

    ==== launcher options
     -main 
    <main>                 the FQCN of the main class to launch
     -args 
    <args>                 the arguments to give to the launched process
     -cp 
    <cp>                     extra classpath to use when launching process

    ==== message options
     -debug                       set message level to debug
     -verbose                     set message level to verbose
     -warn                        set message level to warn
     -error                       set message level to error

    ==== help options
     -?                           display this help
     -deprecated                  show deprecated options


        從1.3版本后系統屬性被包含在ivy變量中,因此你可以很容易的定義ivy變量,類似這樣:

        2) 例子

        java -jar ivy.jar

         用默認配置和當前目錄里面的ivy.xml調用ivy

    java -jar ivy.jar -settings path/to/myivysettings.xml -ivy path/to/myivy.xml

        用給定的ivysettings文件和給定的ivy文件調用ivy

        1. 從1.3版本開始

    java -jar ivy.jar -settings path/to/myivysettings.xml -dependency apache commons-lang 2.0

        用給定的ivysettings文件調用ivy并解析依賴apache commons-lang 2.0.

        這等同于:

    java -jar ivy.jar -settings path/to/myivysettings.xml -ivy ivy.xml
       
        而ivy.xml內容如下:

    <ivy-module version="1.0">
      
    <info organisation="org"
           module
    ="standalone"
           revision
    ="working"
       
    />
      
    <dependencies>
        
    <dependency org="apache" name="commons-lang" rev="2.0" conf="default->*"/>
      
    </dependencies>
    </ivy-module>

        2. 從1.3版本開始

    java -jar ivy.jar -settings path/to/myivysettings.xml -ivy path/to/myivy.xml -cachepath mycachefile.txt

        用給定的ivysettings文件調用ivy并解析在給定的ivy文件中發現的依賴,然后輸出被解析的在緩存中的制品的classpath到文件中。這個文件隨后可以被用來為任何java程序定義符合所有被解析的依賴的classpath。

        3. 從 1.4開始

    java -jar ivy.jar -settings path/to/myivysettings.xml -dependency bar foo 2.0 -main org.bar.foo.FooMain

    用給定的ivysettings文件調用ivy并解析依賴bar foo 2.0,然后用解析出來的制品運行類org.foo.FooMain。

    posted on 2009-07-23 13:36 sky ao 閱讀(1603) 評論(1)  編輯  收藏 所屬分類: project building

    評論

    # re: ivy中文參考文檔(12)-單獨使用 2009-07-23 16:15 施華洛世奇

    哦  回復  更多評論   

    主站蜘蛛池模板: 亚洲女女女同性video| 精品亚洲A∨无码一区二区三区| 亚洲精品综合在线影院| 99re6热视频精品免费观看 | 四虎在线播放免费永久视频| 亚洲一区二区三区免费观看| 91av视频免费在线观看| 91精品国产亚洲爽啪在线影院| 久久国产乱子伦精品免费一| 亚洲中文字幕第一页在线| CAOPORN国产精品免费视频| 亚洲综合国产精品第一页| 久久久久久久国产免费看| 亚洲综合av永久无码精品一区二区 | 亚洲AV成人无码天堂| 久久青草免费91观看| 亚洲男人的天堂在线播放| 桃子视频在线观看高清免费视频| 亚洲国产成人无码AV在线| 破了亲妺妺的处免费视频国产| 丰满亚洲大尺度无码无码专线| 日韩中文无码有码免费视频 | 1000部啪啪毛片免费看| 亚洲综合色视频在线观看| 中国毛片免费观看| 亚洲人成网www| 青青在线久青草免费观看| 色天使亚洲综合一区二区| 不卡一卡二卡三亚洲| 99久久精品免费精品国产| 亚洲中文字幕无码久久2020| 在线永久免费观看黄网站| 久久久久国产精品免费看| 亚洲人成人77777网站不卡| 国产gav成人免费播放视频| 国产精品免费AV片在线观看| 国产亚洲一卡2卡3卡4卡新区 | 亚洲日本一区二区三区在线| 野花高清在线电影观看免费视频| 精品久久久久久国产免费了| 亚洲熟妇无码一区二区三区导航|