[infinispan-dev] config migration scripts

Mircea Markus mircea.markus at jboss.com
Wed May 20 11:35:37 EDT 2009


Christophe Hivert wrote:
> Yes, a unit test where you actually load the produced xml would be great.
>   
org.infinispan.config.parsing.Jbc2InfinispanTransformerTest.
UT revealed quite some issues in the result file, even though the result 
was syntactically correct, as per XSD.
> Just curious, do you guys have any code review process?
>
> Thanks,
> Christophe.
>
> -----Original Message-----
> From: Mircea Markus [mailto:mircea.markus at jboss.com] 
> Sent: Monday, May 18, 2009 2:50 AM
> To: Manik Surtani
> Cc: infinispan-dev at lists.jboss.org; Christophe Hivert
> Subject: Re: [infinispan-dev] config migration scripts
>
> Manik Surtani wrote:
>   
>> On 18 May 2009, at 05:11, Mircea Markus wrote:
>>
>>     
>>> I've enhanced the scripts to create an xml from inlined JGroups 
>>> config, also a script to indent the xml output.
>>>
>>> importConfig.sh and importConfig.bat were added as well, they are 
>>> placed in /bin when running dist.
>>>
>>> I still have to add an UT to check the semantical correctness of the 
>>> transformation.
>>>       
>> Great - Christophe is writing the EHCache transformation and Adrian's 
>> doing the Coherence one, these should be checked for correctness as well.
>>
>> Cheers
>> Manik
>>     
> Ah great!
> Christophe, Adrian let me know if I can help...
>   
>>> Manik Surtani wrote:
>>>       
>>>> So I suppose the way this is going to work, is something like:
>>>>
>>>>    $ ./migrateConfig.sh --format ehcache src_config.xml 
>>>> target_config.xml ?
>>>>
>>>> where usage would be something like:
>>>>
>>>>    $ ./migrateConfig.sh --help
>>>>
>>>>    Usage:
>>>>        migrateConfig --format <ehcache | jbosscache | coherence> 
>>>> /path/to/src.xml /path/to/output.xml ?
>>>>         
>>>> Cheers
>>>> Manik
>>>>
>>>> On 15 May 2009, at 11:34, Mircea Markus wrote:
>>>>
>>>>         
>>>>> Hi,
>>>>>
>>>>> I've just added /src/resources/xslt/jbc3x2infinispan4x.xslt for 
>>>>> migrating config files from JBossCache to Infinispan.
>>>>> I'll also add the .bat and .sh shortly + a java class to 
>>>>> instantiate the transformer.
>>>>>
>>>>> Cheers,
>>>>> Mircea
>>>>> _______________________________________________
>>>>> infinispan-dev mailing list
>>>>> infinispan-dev at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>>>>>           
>>>> -- 
>>>> Manik Surtani
>>>> manik at jboss.org
>>>> Lead, Infinispan
>>>> Lead, JBoss Cache
>>>> http://www.infinispan.org
>>>> http://www.jbosscache.org
>>>>
>>>>
>>>>
>>>>
>>>>         
>> -- 
>> Manik Surtani
>> manik at jboss.org
>> Lead, Infinispan
>> Lead, JBoss Cache
>> http://www.infinispan.org
>> http://www.jbosscache.org
>>
>>
>>
>>
>>     
>
>   




More information about the infinispan-dev mailing list