开发者

Can I use ivy dependency info in my ant build file

开发者 https://www.devze.com 2023-01-20 19:35 出处:网络
In my ivy.xml fil开发者_如何学JAVAe I have dependency statements like: <dependency conf=\"*->*\" org=\"gnu\" name=\"gcc\" rev=\"4.2.1\" changing=\"false\">

In my ivy.xml fil开发者_如何学JAVAe I have dependency statements like:

<dependency conf="*->*" org="gnu" name="gcc" rev="4.2.1" changing="false">
    <artifact name="gcc" ext="tbz2" e:classifier="src"/>
</dependency>

'rev=' can be a fixed value or 'latest' or whatever.

In my build file I would like to get hold of the value of 'rev' to be uses in further work flow after resolve is run.

Is there any way to do that or read a property for this?


Use the artifactproperty task

<ivy:artifactproperty name="version.[artifact]" value="[revision]"/>

<echo message="gcc version: ${version.gcc}"/>
0

精彩评论

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