ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard_Senior <richard.sen...@gmail.com>
Subject extra attributes on the dependancy tag...
Date Thu, 31 Mar 2011 10:38:35 GMT

Hello,

Can you pass extra attributes on the dependancy tag that can be used or
ignored by each individual resolver?
So for example :

<dependency conf="modules" org="myorg.org" name="blah.blah.com" rev="1.0.0"
OPTIONALPARAMETER="20110330172627"/>

Then in one resolver I could write :

<url name="cruisecontrol" cache="temporary">
 <ivy
pattern="http://cruise/artifacts/[organisation]/[OPTIONALPARAMETER]/[module]/[artifact]-[revision].[ext]"
/>  			
 <artifact
pattern="http://cruise/artifacts/[organisation]/[OPTIONALPARAMETER]/[module]/[artifact]-[revision].[ext]"
/>
</url>

And in a different resolver I might have :

<filesystem name="temporary" cache="temporary">
 <ivy
pattern="${repository.dir.temporary}/[module]/[artifact]-[revision].[ext]"
/>
 <artifact
pattern="${repository.dir.temporary}/[module]/[type]s/[artifact]-[revision].[ext]"
/>
</filesystem>

So the dependancy will be found with or without the optional parameter
depending on the resolver?
-- 
View this message in context: http://old.nabble.com/extra-attributes-on-the-dependancy-tag...-tp31285134p31285134.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message