Community
Participate
Working Groups
It would be nice to have a general availability to add source directories to a project which are outside the project root. I'm working with a extensive application environment that brings customized compile/make scripts with it. Please have a look at the following structure. X:\Application - main Directory of the Application X:\Application\src\Component_1\javasource X:\Application\src\Component_2\javasource X:\Application\src\Component_3\javasource [...] X:\Application\src\Component_N\javasource It would be very usefull if I can add these source directorys to a Eclipse project without having to set the Eclipse project root to "X:\Application" because it is not a clean procedure to put Eclipse stuff into the directory of an application. Also I would be nice to have another good advantage. I don't know how it's already implemented in Eclipse because I couldn't test it. Eclipse should then merge the directory content "virtually" and should display packages belonging together as one "package" like the JVM does. Example: At "X:\Application\src\Component_1\javasource" there is package structure "com.company.product.component1" and at "X:\Application\src\Component_2\javasource" there is "com.company.product.component2". Eclipse should merge them and should display "com.component.product" as expandable package name if there are no classes under "com.company.product". So I don't even have to expand "com" then expand "company" then expand "product" ...
I agree with Gunnar, I often need edit JSP/XML files directly on server, but too sources which are on my local disk. I must have two projects now.
JdtCore is relying on the Eclipse platform resource management. Therefore it cannot address this problem satisfactorily without platform support. If platform was to generalize the possibility of dealing with resources outside the workspace (like it did for projects only), then we could address the Java side of it. Currently we only tolerate JARs outside the workspace, because they are supposed to be immutable. Anything beyond that would not be doable. Moving to Platform core for comments.
*** This bug has been marked as a duplicate of 8450 ***