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

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

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

    Sky's blog

    我和我追逐的夢

    常用鏈接

    統(tǒng)計

    其他鏈接

    友情鏈接

    最新評論

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

        1) 單獨使用

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

        這是如何調(diào)用它的例子:

    java -jar ivy.jar -?

        它將實現(xiàn)類似這樣的在線幫助:

    ==== 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版本后系統(tǒng)屬性被包含在ivy變量中,因此你可以很容易的定義ivy變量,類似這樣:

        2) 例子

        java -jar ivy.jar

         用默認配置和當前目錄里面的ivy.xml調(diào)用ivy

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

        用給定的ivysettings文件和給定的ivy文件調(diào)用ivy

        1. 從1.3版本開始

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

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

        這等同于:

    java -jar ivy.jar -settings path/to/myivysettings.xml -ivy ivy.xml
       
        而ivy.xml內(nèi)容如下:

    <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文件調(diào)用ivy并解析在給定的ivy文件中發(fā)現(xiàn)的依賴,然后輸出被解析的在緩存中的制品的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文件調(diào)用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 施華洛世奇

    哦  回復  更多評論   

    主站蜘蛛池模板: 中文字幕成人免费视频| 久久久久免费精品国产| 四色在线精品免费观看| 亚洲一区二区三区播放在线| 亚洲一区免费在线观看| 亚洲免费一级视频| 女人张开腿给人桶免费视频| 亚洲91精品麻豆国产系列在线| 中文字幕无码不卡免费视频| 亚洲人xxx日本人18| 日本成人免费在线| 老外毛片免费视频播放| 国产a v无码专区亚洲av | 国产AV无码专区亚洲AV毛网站| 国产福利在线观看永久免费| 亚洲精品无码久久久久sm| 午夜网站在线观看免费完整高清观看| 亚洲国产成人久久精品影视| 99久久人妻精品免费一区| 亚洲不卡中文字幕| 又爽又高潮的BB视频免费看| japanese色国产在线看免费| 亚洲高清视频在线观看| 免费电视剧在线观看| 黄页网址大全免费观看12网站| 国产亚洲情侣一区二区无码AV| 黄色片免费在线观看| 亚洲视频免费观看| 女人18毛片特级一级免费视频| 日本免费精品一区二区三区| 国产亚洲精品国产| 成年人性生活免费视频| 乱人伦中文视频在线观看免费| 亚洲成AV人片一区二区密柚| 久久久久国产精品免费免费搜索 | 中文字幕亚洲专区| 在线观看www日本免费网站| 亚洲av无码专区青青草原| 精品亚洲综合在线第一区| 成人爽A毛片免费看| 一区二区三区免费视频网站|