hallo hans,

thanks for the note. i will try
it out as soon as i can. (-> wjax)

there are more 'special' settings in
our ivyconfs ;-)

they will probably be a good test-case
for the addIvyTransformer() methods.

have a nice time


hdockter wrote:
> 
> Hi Helmut,
> 
> On Oct 28, 2008, at 11:30 AM, Helmut Denk wrote:
> 
>>
>> hi gradle-users,
>>
>> how can i set 'dual' and 'returnFirst' Attributes
>> for a resolver-chain in my build.gradle ?
>>
>>
>> <resolvers>
>>      <chain name="default-resolver" dual="false" returnFirst="true">
>>              <resolver ref="local"/>
>>              <resolver ref="shared"/>
>>              <resolver ref="snapshot"/>
>>              <resolver ref="released"/>
>>              <resolver ref="thirdparty"/>
>>      </chain>
>> </resolvers>
>>
>>
>> i tried:
>>
>>
>> project.getDependencies().setChainConfigurer {
>>   ...
>> }
>>
>>
>> but was not successful.
> 
> Sorry for the late answer. I don't know why the chainConfigurer  
> doesn't work. We have thrown this property out of trunk recently  
> anyway. Adam has committed a consistent mechanism for custom post- 
> processing of ivy objects created by Gradle.
> The SettingsConverter and the ModuleDescriptorConverter are now  
> accessible via the dependency manager. Both offer a method called  
> addIvyTransformer(). You can pass a closure to this method which gets  
> applied against the IvySettings and ModuleDescriptor object created  
> by the converters. This stuff is committed but we might change the  
> semantic of how the closure is applied. Dependencies and  
> Configuration objects also have such an addIvyTransformer method.
> 
> For your problem this means that you will have an IvySettings object  
> at hand which you can modify.
> 
> - Hans
> 
> --
> Hans Dockter
> Gradle Project lead
> http://www.gradle.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/set-attributes-for-resolver-chain-tp20204652p20306056.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to