I got back to this thread last week and spent a day trying to get our
individual modules to behave. It turns out life is not so simple. For
the record this is what I looked at.

1/ Have contribution poms and the test pom point at the source
downloaded from the OASIS svn sitting in the src directory
   This works fine in maven but Eclipse really doesn't like referring
to things that are not part of each project

1a/ I experimented with build helper and the normal build settings and
couldn't get away from a situation where Eclipse was complaining about
a reference to an external directory

1b/ I removed the external reference and replaced it manually with an
external link. Works fine in eclipse and the .project file
configuration is straightforward. Generating this using the eclipse
plugin is not. It doesn't support it by default. We have our own
eclipse plugin so in theory we could enhance it to add this. We would
also need to enhance it to stop it generating the incorrect external
references that cause errors in eclipse. I started looking at the
plugin code and decided that I didn't want to spend a couple of days
making plugin changes and risk messing up the rest of the build.

2/ I pulled back from external references and separated up the
svn:external properties so each module gets its own pulling in just
the code that's required. Sounds like the perfect solution except that
the OASIS svn server is slow and it takes at least 40 second per
module to do an update. If we convert all of the tests to be like this
then doing an update will take a significant amount of time

3/ Write an ant script to copy code from the src directory (where the
single svn:external puts the test code) into each model. Will be much
faster but the downside is that you won't be sitting on top of the
code directly from OASIS svn. Now this doesn't matter for most of us
as we are not committers there anyhow.


So the code in our svn at the moment does 2 and only test 5004 has
been converted. I'm thinking of adding 3 and we can go forward like
that for the time being unless anyone has any bright ideas.

Simon

Reply via email to