I have two applications, one for android and one for blackberry and I want to share some common code between the two apps.
I have a folder structure as follows…
project
android
.metadata (eclipse workspace)
project
(android specific project folder layout)
blackberry
.metadata (eclipse workspace)
project
(blackberry specific project folder layout)
project.core
src
(just source files common to each project above)
I just want to reference an external source folder (using relative paths) from the two internal projects. It seems eclipse doesn’t like this kind of setup as it prefers source folders to be children of the workspace folder. Due to other reasons I cannot share a common workspace between blackberry and android.
Is there a way to do this?
I would encourage putting your common code into a separate self contained project. You can then package this into a jar and import it in any of your projects.