I have three projects in my eclipse workspace:
EventKitchenCore
EventKitchenDesktop
EventKitchenAndroid
EventKitchenCore
contains
The simplest idea (which would work outside of Eclipse, too) would be to create a symlink/shortcut from your package-directory of the library into the src
-folder of your projects:
|- EventKitchenCore
|- src/
|- org.your.library.package <-+
|- EventKitchenDesktop |
|- src/ |
|- org/desktop/something/ |
|- symlink to ----------------+
|- EventKitchenAndroid |
|- src/ |
|- org/android/something/ |
|- symlink to ----------------+
This way, you could compile the actual projects as if your library would be a part of the applications and you have your changes immediately reflected in both your projects.