I'm trying to work out the easiest way to share global library definitions
between developers. I can set a path variable to make the location of the
library files themselves "developer agnostic", but that's not the problem
(we'd probably put all the shared libraries on a common network drive anyway).
The sticking point seems to be working out how to share applicationLibraries.xml.
I can understand why the difficulty; IDEA no doubt caches that info on startup
and doesn't like applicationLibraries.xml being changed behind it's back,
so sharing the file between multiple IDEA instances is a no-no. But there
must be a better way than having every developer maintain their own version
of applicationLibraries.xml. Storing it in VCS only goes part of the way
to solving the problem; there's still problems like the need to stop IDEA,
check out a new version (& perhaps copy it to the .IntelliJIdea70/config/options
directory), then restart IDEA.
I seem to remember older versions of IDEA used to write a separate file for
each global library that was declared, so creating new libraries into a shared
directory would work well. Obviously changing existing libraries might be
more of a problem but if the files were version controlled/read only, it
should work well for the most part.
Does anyone have any suggestions on the best approach? Is it possible to
write a plugin that intercepts the reading/writing of applicationLibraries.xml
so it can take care of the concurrency issues?