I find myself in an awkward situation with my project structure. It
looks something like this:
- Build output, including classes and product distribution
- Base files for product distribution
Now the problem is that the "java" directory contains multiple packages
which are compiled with different JDKs. I.e. some packages are
compiled with 1.3, some with 1.4 and some with 5.0. There are good
reasons for this, mainly because the packages compiled with 1.3 are
required to run in environments where only JDK 1.3 is available. The 1.4
packages run in our own Java environment which we control and therefore
can use 1.4. The 5.0 packages are for supporting features available in
Our Ant build script handles this without a problem. Just a few filesets
and everything compiles.
However, in IDEA, I can't separate the packages into modules for 1.3,
1.4 and 5.0 because IDEA won't let me define two modules with the same
content root and exclude the packages I don't want for each module. I
have a single module with "java" as a source root, the JDK set to 1.4
and the language level set to 1.4. This worked reasonably well until we
started adding 5.0 code.
How do I solve this? I don't want to have to split it into separate
projects. One solution would be to split the "java" directory into
"java-13", "java-14" and "java-50", but I don't think that would be
received very well by project management :P In the long run, it may be
the best solution though.
But in the meantime, is there anything I can do to make IDEA work with
the directory structure I have now?
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001