Ivy
reportã¿ã¹ã¯ã§ãã¢ã¸ã¥ã¼ã«ã®ä¾åé¢ä¿ãªãã¼ããä½æã§ãã¾ãã <project default="report" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant"> <property name="ivy" value="ivy"/> <target name="report" depends="download-ivy" > <ivy:resolve /> </ivy:resolve></target></property></project>
dual ãªã¾ã«ãã使ãã¨ãjarã¨ivy.xmlãããããå¥ã®ãªã¾ã«ãã使ã£ã¦åå¾ãããã¨ãã§ãã¾ããéivyãªjarããã£ã¦ã¢ã¯ã»ã¹å¯è½ãªURLã§å ¬éããã¦ããå ´åããã¼ã«ã«ã«ivy.xmlãç¨æãdualãªã¾ã«ãã§URLä¸ã®jarã¨ãã¼ã«ã«ã®ivy.xmlããããããåå¾ãããã¨â¦
Ivyã§ã¨ã©ã¼ã«ãªã㨠[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILSã¨ããããã¾ããããããå ´åã¯ãAntã®èµ·åãªãã·ã§ã³ã§ã-vã¨ã-dã¨ãã¤ããã¨OKã $ ant -d -v retriveã-dãã-vãã¨ãã«antã®æ©è½ã§ããããããããã°ã¢ã¼â¦
Ivyã§è¨å®ãã¡ã¤ã«ãivysettings.xmlããæ示ããæ¹æ³ã«ã¤ãã¦ã å¤æ°ãivy.settings.fileãã§æå®ããæ¹æ³ ãivy:settingsãã¿ã¹ã¯ã§è¨å®ããæ¹æ³ ã®2ã¤ãããã¾ãã 1.å¤æ°ãivy.settings.fileãã§æå®ããã ãivy.settings.fileãã®å¤ã¨ãã¦ãivysettingâ¦
Ivyã§ä¾åã¢ã¸ã¥ã¼ã«ã®åå¾æã«è¤æ°ã®ãµã¼ãã¼ã«åãåãããããã«ããæ¹æ³ã§ãããchain ãªã¾ã«ãã使ãã°è¯ããã§ãããã®ã¾ã¾ãã°ããªè§£èª¬ããã¡ãã«ããã¾ããå ·ä½çã«ã¯ã <ivysettings> <settings defaultResolver="chain"/> <resolvers> <chain name="chain"> <url name="url-resolver"> </url></chain></resolvers></settings></ivysettings>
URLãªã¾ã«ããå©ç¨ããã°ãç¹å®ã®URLã§å ¬éããã¦ããã¢ã¸ã¥ã¼ã«ããä¾åã¢ã¸ã¥ã¼ã«ã¨ãã¦Ivyã§åå¾ãããã¨ãã§ãã¾ãã å ·ä½çã«ã¯ã ãivysettings.xmlããä½æããURLãªã¾ã«ãã®è¨å®ã追å ã artifactè¦ç´ ã®å¤ã¨ãã¦ãåå¾å URLãæå®ã[revision]ã[artâ¦
Ivyã¯ãããã©ã«ãã§ã¯mvnrepository.comããã¢ã¸ã¥ã¼ã«ãåå¾ããã¨ã®ãã¨ããªã®ã§ãmvnrepository.comã§å ¬éããã¦ããã¢ã¸ã¥ã¼ã«ã¯åºæ¬çã«å©ç¨å¯è½ã§ãã å ¬éã¢ã¸ã¥ã¼ã«ã¯ããµã¤ãã§æ¤ç´¢ãã¦æ¢ãã¾ãã ã¢ã¸ã¥ã¼ã«ãè¦ã¤ãã£ãããdependencyè¦ç´ ã«ã¦maâ¦
次ã®ããã¸ã§ã¯ã(ã®ä¾åããã¸ã§ã¯ã)ã§ãivy.xmlããåºã¦ããã®ã§ã¡ã¢ã Ivyã¯Antã«çµã¿è¾¼ãã§ä½¿ããã¢ã¸ã¥ã¼ã«ã®ä¾åé¢ä¿ããã¼ã¸ã£ã§ãivy.xmlã¯ãã®è¨å®ãã¡ã¤ã«ã§ãã ã¢ã¸ã¥ã¼ã«ã®ä¾åé¢ä¿ããivy.xmlãã«è¨è¿°ãããã¨ã§ã ä¾åã¢ã¸ã¥ã¼ã«ã®è§£æ±ºããâ¦