1
有几个“通用”模块和一个模块,它们依赖于它们(根)。我想将一些信息放在通用模块ixy.xml中,稍后在根的build.xml中读取这些信息。所以通用模块ivy.xml看起来像:获取有关从属模块的常见信息
<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>
我把额外的属性“svnurl”放到ivy.xml中。根的ivy.xml可能看起来像:
<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>
我想以后我做了常春藤阅读所有依赖的“svnurl”属性的值:解决根本模块。我试图看看buildlist和listmodules,但在我看来他们缺乏我需要的功能。任何想法?
看起来很有效,谢谢! (事实上,它是ivy.extra。[任何额外的属性],但没关系。)我没有注意到info任务具有组织和模块属性。 – batusek