For unit test, the custom node type file solution is quite easy. of course, for real applications I see good reasons to use the API to import the node types.
How is it working for the unit tests ? (see the maven.xml, it is quite simple to understand) : 1/ Node types used in the unit tests are added in : /src/test-config/repository/repository/nodetypes/custom_nodetypes.xml 2/ target/repository contains the repository for the unit test and can clean up with " maven clean" . 3/ before starting the unit tests, /src/test-config/repository/repository/nodetypes/custom_nodetypes.xml is copied into target/repository/repository/nodetypes of course, we have the same result by using the API but I didn't know that Oliver has finished that. Up to you to choose what you want. On 2/2/06, Oliver Kiessler <[EMAIL PROTECTED]> wrote: > > That's how I have modified the BaseTest to do ;-). Register the custom node > > types using Jackrabbit > > API (before Christophe explaining how it works with Maven). > > sorry about that! I didn't know... Well, both ways are possible but I > prefer solving this programmatically.... ;) > > - oliver > -- Best regards, Christophe
