Hi Dave,

I move this discussion into the development as the context of it is quite 
technical, and I am planning to contribute the migration tool, if you guys 
accept it. :)

I am almost done with my migration utility. I made it extensible so that other 
people can provide their own classes to read data from a blog and get the data 
into jRoller. I am pretty happy because we might be the first Blog to provide a 
extensible framework to migrate data into a blog :D.

I manage to get it running inside of eclipse, but now that I am trying to 
separate it out from the eclipse environment and  I am running into problem 
that hopefully you can help me.

I used the groovy sample http://tinyurl.com/2l2no4 as a based but I went with 
Java which is my strength. I found that before calling:

Weblogger roller = WebloggerFactory.getWeblogger();

I need to call:
        WebloggerStartup.prepare();
        WebloggerFactory.bootstrap();

And with that I need to add a whole bunch of jar dependecies, so I am doing 
this.. I am staring to wonder if:

1) I am doing it the right way
2) Do i really need to add all this guicer jars and jpa stuff..?
3) After resolving several problems related to properties, or classes missing, 
I am now running into:
Caused by: java.lang.RuntimeException: couldn't access theme dir 
[${webapp.context}]
    at 
org.apache.roller.weblogger.business.themes.ThemeManagerImpl.<init>(ThemeManagerImpl.java:88)
    ... 34 more


Dave <[EMAIL PROTECTED]> wrote: On 11/5/07, Angel Vera  wrote:
> I was thinking on creating a java tool that would connect to the blojsom 
> database and insert the data into the roller database. Unfortunately, I don't 
> understand  (yet) what is the minimum required data for the table 
> "weblogentry" so that it will not break jRoller. My idea is to migrate the 
> entries only (without categories), disallow comments on those entries, but 
> have the correct posting date and time.

Instead of creating the Roller data via SQL, I recommend you use the
"Roller API" which is made up of a set of Java classes "POJOs" and
some Java interfaces "Managers."

You can find a set of examples that illustrate how to call the Roller
API from Groovy here: http://tinyurl.com/2l2no4. If you don't want to
mess with Groovy, the Java code will be pretty similar.

- Dave

Reply via email to