开发者

Get information about dependent modules in Ivy

have several "generic" modules and one module, which is dependent on them (root). I would like to put some information in the generic modules ixy.xml and later read this information in the build.xml of the root. So the 开发者_运维知识库generic module ivy.xml looks like:

<ivy-module version="2.0"  xmlns:sqsg="http://www.company.com/sqsg/ivy/extra">
  <info organisation="company" module="build-scripts" revision="1.0.2" status="integration" sqsg:svnurl="blabla">
  </info>
  <publications>
   ...
  </publications>
</ivy-module>

I put and extra attribute "svnurl" to the ivy.xml. The root ivy.xml may look like:

<ivy-module version="2.0">
    <info organisation="company" module="root" revision="2.0.5" status="integration">
    </info>
    <dependencies>
        <dependency org="company" name="build-scripts" rev="1.0+" changing="true"/>
    </dependencies>
</ivy-module>

I want to read the value of the "svnurl" attribute of all dependencies after I made ivy:resolve of the root module. I tried to look at buildlist and listmodules, but it seems to me they lack the functionality I need. Any idea?


Will the info task help?:

<ivy:info organisation="apache" module="info-all" revision="1.0" />
  • ivy.artifact.[index].extra.[any extra attribute]: For each extra attribute of the published artifact, a property is created containing its name. (Since 2.2)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜