You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Angel Vera <gu...@yahoo.com> on 2008/01/17 23:36:27 UTC

Re: Issue related to blojsom

Hi Claudio, 

I recommend you use the one in roller-support. You are going to have to do some small modifications to the code, but don't worry it is not that much.

Because you are the second tester (I was the first one) I encourage you to take a look at the code in, but ....:
https://roller.dev.java.net/source/browse/roller/roller_support/tools/migrator/src/java/com/gunfus/jroller/

...if you simply don't care, then at the bare minimum you need to modify: 
https://roller.dev.java.net/source/browse/roller/roller_support/tools/migrator/src/java/com/gunfus/jroller/blojsom/BlojsomEntry.java?rev=1.1&view=markup

..because it contains the category mapping between Blojsom(in numbers) and Roller(in names). Currently the categories are hard-coded into the code later I am planning to provide a better way of reading mapping the categories without having to modify the code. 

You may also need to modify the locale if it is something different, in my case I use en_CA.

You are also going to need to modify the BlojsomMigratorReader.properties as it contains the specific location and username(schema) of the derby database.

So to summarize:
1) modify BlojsomEntry.java, with the correct categories for your blog
2) modify BlojsomEntry.java with the proper locale
3) modify BlojsomMigratorReader.properties with the properties of your derby database
4) shutdown blojsom, backup your derby database files. 
5) build the migration tool
6) modify roller-custom.properties, for your enviroment
7) run the migration tool, I typically run it from inside of my development environment, and I have only tested the .bat file. Haven't gotten time to work on the shell, but it should work.

Any improvements or additional help, feel free to ask. 

Claudio Miranda <cl...@claudius.com.br> wrote:     Do you recommend to use migration tool from roller-support site
[1] or the .jar provided at mailing list [2]?

1 - https://roller.dev.java.net/source/browse/roller/roller_support/tools/migrator/
2 - http://www.nabble.com/Re%3A-migration-from-blojsom-p13724498s12275.html


-- 
  Claudio Miranda
  _______________________________________________
  Summa Technologies do Brasil - www.summa-tech.com
  http://www.claudius.com.br/blog  claudio(o)claudius.com.br
  http://www.soujava.org.br

 

Re: Issue related to blojsom

Posted by Claudio Miranda <cl...@claudius.com.br>.
    Thanks for your tips. I did the migration locally at my laptop,
and it worked very well.
    Besides your tips, I changes the plugins to "Email Scrambler" only
 and added mail configuration to roller-custom.properties.

    I ran it with roller 4 FCS and all WEB-INF/lib libraries.

Thank you very much

Claudio Miranda

On 1/17/08, Angel Vera <gu...@yahoo.com> wrote:
> Hi Claudio,
>
> I recommend you use the one in roller-support. You are going to have to do
> some small modifications to the code, but don't worry it is not that much.
>
> Because you are the second tester (I was the first one) I encourage you to
> take a look at the code in, but ....:
> https://roller.dev.java.net/source/browse/roller/roller_support/tools/migrator/src/java/com/gunfus/jroller/
>
> ...if you simply don't care, then at the bare minimum you need to modify:
> https://roller.dev.java.net/source/browse/roller/roller_support/tools/migrator/src/java/com/gunfus/jroller/blojsom/BlojsomEntry.java?rev=1.1&view=markup
>
> ..because it contains the category mapping between Blojsom(in numbers) and
> Roller(in names). Currently the categories are hard-coded into the code
> later I am planning to provide a better way of reading mapping the
> categories without having to modify the code.
>
> You may also need to modify the locale if it is something different, in my
> case I use en_CA.
>
> You are also going to need to modify the
> BlojsomMigratorReader.properties as it contains the
> specific location and username(schema) of the derby database.
>
> So to summarize:
> 1) modify BlojsomEntry.java, with the correct categories for your blog
> 2) modify BlojsomEntry.java with the proper locale
> 3) modify BlojsomMigratorReader.properties with the
> properties of your derby database
> 4) shutdown blojsom, backup your derby database files.
> 5) build the migration tool
> 6) modify roller-custom.properties, for your enviroment
> 7) run the migration tool, I typically run it from inside of my development
> environment, and I have only tested the .bat file. Haven't gotten time to
> work on the shell, but it should work.
>
> Any improvements or additional help, feel free to ask.

-- 
  Claudio Miranda
  _______________________________________________
  Summa Technologies do Brasil - www.summa-tech.com
  http://www.claudius.com.br/blog  claudio(o)claudius.com.br
  http://www.soujava.org.br