During development, our Android app is built using Eclipse (ADT). We use an eclipse feature called Linked Resources, which allows eclipse to compile files outside of the source tree.
It works well on eclipse, but when trying to compile from the command line (using android update project and ant), ant/javac won’t find the linked resources (as they are defined in the eclipse project).
How can I make it work? Do I need to manually add the additional source dir to build.xml (which was auto-generated by android)? Is there an android setting I should use?
You could put the paths of the extra source code in the source.dir line of ant.properties in your project directory. Something like this:
source.dir=src;../ExtraSource;../MoreSource/java
See http://code.google.com/p/android/issues/detail?id=21205 for more discussion. Apparently they took this feature out at some point but it looks like they have put it back in since then.