Re: Ivy's ModuleDescriptor.getExtraInfo() is now deprecated

2014-05-16 Thread Nicolas Lalevée
Forget about that duplicate mail, this is me being tricked by the ASF email 
lag. It seems to still continue to lag a lot.

Nicolas

Le 8 mai 2014 à 17:07, Nicolas Lalevée  a écrit :

> Hi,
> 
> ModuleDescriptor.getExtraInfo() is deprecated but there is no indication in 
> the doc about what should be used then. There is getExtraInfos(), but as I 
> look to the code, there is no data transfer between both, if if there is data 
> in one, I cannot get the data from the other one. And since the 
> XmlModuleDescriptorWriter is only handling "ExtraInfoHolder", some data are 
> lost.
> 
> For this new need method getExtraInfos() to work properly, I guess it have to 
> handle all the calls to the deprecated getExtraInfo(). Am I missing something 
> ?
> 
> Nicolas
> 
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
> For additional commands, e-mail: dev-h...@ant.apache.org
> 


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Ivy's ModuleDescriptor.getExtraInfo() is now deprecated

2014-05-15 Thread Nicolas Lalevée
Hi,

ModuleDescriptor.getExtraInfo() is deprecated but there is no indication in the 
doc about what should be used then. There is getExtraInfos(), but as I look to 
the code, there is no data transfer between both, if if there is data in one, I 
cannot get the data from the other one. And since the XmlModuleDescriptorWriter 
is only handling "ExtraInfoHolder", some data are lost.

For this new need method getExtraInfos() to work properly, I guess it have to 
handle all the calls to the deprecated getExtraInfo(). Am I missing something ?

Nicolas


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Ivy's ModuleDescriptor.getExtraInfo() is now deprecated

2014-05-11 Thread Nicolas Lalevée

Le 11 mai 2014 à 19:12, Jean-Louis Boudart  a 
écrit :

> Hi Nicolas,
> 
> This was introduced by IVY-1457 and breaks backward compatibility as
> mentioned there. All call to old api from ivy-core itslef has been migrated
> on trunk. I didn't find any elegant way to make it backward compatible.
> Suggestion are welcome.
> 
> But yeah basically you get the idea :/

As far as I understand getExtraInfo was kind of broken. I think I have managed 
to make getExtraInfo and getExtraInfos work together, explicating in the doc 
that the former will barely work, but at least work a little bit. See my commit 
r1593855. As far as I can tell, tests pass well.

Nicolas

> 
> 
> 2014-05-11 17:07 GMT+02:00 Nicolas Lalevée :
> 
>> Hi,
>> 
>> ModuleDescriptor.getExtraInfo() is deprecated but there is no indication
>> in the doc about what should be used then. There is getExtraInfos(), but as
>> I look to the code, there is no data transfer between both, if if there is
>> data in one, I cannot get the data from the other one. And since the
>> XmlModuleDescriptorWriter is only handling "ExtraInfoHolder", some data are
>> lost.
>> 
>> For this new need method getExtraInfos() to work properly, I guess it have
>> to handle all the calls to the deprecated getExtraInfo(). Am I missing
>> something ?
>> 
>> Nicolas
>> 
>> 
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
>> For additional commands, e-mail: dev-h...@ant.apache.org
>> 
>> 
> 
> 
> -- 
> Jean Louis Boudart
> Independent consultant
> Apache EasyAnt commiter http://ant.apache.org/easyant/


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Ivy's ModuleDescriptor.getExtraInfo() is now deprecated

2014-05-11 Thread Nicolas Lalevée
Hi,

ModuleDescriptor.getExtraInfo() is deprecated but there is no indication in the 
doc about what should be used then. There is getExtraInfos(), but as I look to 
the code, there is no data transfer between both, if if there is data in one, I 
cannot get the data from the other one. And since the XmlModuleDescriptorWriter 
is only handling "ExtraInfoHolder", some data are lost.

For this new need method getExtraInfos() to work properly, I guess it have to 
handle all the calls to the deprecated getExtraInfo(). Am I missing something ?

Nicolas


-
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org



Re: Ivy's ModuleDescriptor.getExtraInfo() is now deprecated

2014-05-11 Thread Jean-Louis Boudart
Hi Nicolas,

This was introduced by IVY-1457 and breaks backward compatibility as
mentioned there. All call to old api from ivy-core itslef has been migrated
on trunk. I didn't find any elegant way to make it backward compatible.
Suggestion are welcome.

But yeah basically you get the idea :/


2014-05-11 17:07 GMT+02:00 Nicolas Lalevée :

> Hi,
>
> ModuleDescriptor.getExtraInfo() is deprecated but there is no indication
> in the doc about what should be used then. There is getExtraInfos(), but as
> I look to the code, there is no data transfer between both, if if there is
> data in one, I cannot get the data from the other one. And since the
> XmlModuleDescriptorWriter is only handling "ExtraInfoHolder", some data are
> lost.
>
> For this new need method getExtraInfos() to work properly, I guess it have
> to handle all the calls to the deprecated getExtraInfo(). Am I missing
> something ?
>
> Nicolas
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
> For additional commands, e-mail: dev-h...@ant.apache.org
>
>


-- 
Jean Louis Boudart
Independent consultant
Apache EasyAnt commiter http://ant.apache.org/easyant/