We have a zillion projects run by a master list and some source
generators. I would like to add idea support so people could try IDEA
out. I am having trouble generating those first basic projects from
which the template will be generated.
I am not able to figure out how to tell IDEA that project 'child'
depends on project 'parent', so if parent is changed, child will need to
be recompiled. Further, if I change 'parent' such that 'child' breaks,
I would like to know that immediately. Finally, if I want to find out
where the class parent.ParentClass or the method
parent.ParentClass.parentMethod is used, I would like the search to know
to seach in child's classes.
The structure is:
Each project has a unique root directory. This is handled in the
project tab, and works.
Some projects have just a source directory, while others have a
source-generated. This is handled in the sourcepath tab, and works.
Some projects depend on third party libraries in a global libraries
directory. This is handled in the classpath tab, and works.
Some projects depend on other projects, which is where the problem lies.
When we build with ant, which we would rather not force people to do
while using IDEA, we compile each project to a seperate jar file. I am
willing to add the appropriate jars to the classpath tab, but will IDEA
then know to follow searches, rename refactorings, and the like down
that tree? Does IDEA prefer a different way of telling it that two
projects are related? (Reorganizing the structure is not feasible at
this time, so IDEA has to work within this framework.)
NB - Eclipse handles this pretty much out of the box, by having one
project just depend on another. If someone has converted such a
structure, how did you do it?