You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by David M Johnson <Da...@Sun.COM> on 2005/12/19 20:06:19 UTC

Building JDO backend stubs

I have committed a stubbed out version of a JDO backend for Roller to 
the sandbox. Here is the directory structure:

    sandbox/jdobackend/lib - JPOX JDO jars
    sandbox/jdobackend/src - stubbed out JDO backend Java source

As promised, here are instructions for building and running Roller's 
unit tests against that JDO backend.

1) Add JDO source directory to build process
Uncomment lines in custom/custom-src-beans.xmlf so that you have this:

      <!-- Uncomment this to compile experimental JDO backend -->
      <fileset dir="${basedir}/sandbox/jdobackend/lib" includes="*.jar" 
/>

2) Add JDO jars to build process
Uncomment lines in custom/custom-jars.xmlf so that you have this:

      <!-- Uncomment this to compile experimental JDO backend -->
      <fileset dir="${basedir}/sandbox/jdobackend/lib" includes="*.jar" 
/>

3) Tell Roller tests to use JDO backend
Uncomment the line in testdata/roller-custom.properties so that you 
have this:

       # Uncomment this to use JDO backend
       persistence.roller.classname=org.roller.business.JDO.JDORollerImpl

4) Build Roller, run business layer tests

./build.sh rebuild
./build.sh  test-business

And, of couse, the tests should fail when they hit the JDO stubs...

Craig: let me know how I can help you get going (or if you run into any 
problems).

- Dave