On Tue, Jul 6, 2010 at 10:16 PM, nick <[email protected]> wrote:
> Hi,
>
> I've split my application into a library project and app project, it
> mostly works but there are some annoying issues. Hopefully someone has
> an idea how to avoid them. Here goes.
>
> This is really basic, and maybe I am missing something, but why isn't
> the app project automatically rebuilt after I change the library
> project? I've checked the library project in the 'Project References'
> of the app project, but that seems to have no effect. No after each
> change I make to the library project, I need to remember to clean the
> app project to get new code into the apk. Needles to say, I forget all
> the time...

Yeah, the way Eclipse handles the linked folders is not exactly great,
but at this time we have no choice but to use them.
What happens is that Eclipse doesn't realize the file in your library
project and in your main project are the same file, and it keeps 2
different caches for them.
When you edit one, the other version is considered to be modified
outside of Eclipse, so you need to refresh the project for Eclipse to
keep it in sync.

Your best bet is to set the workspace to automatically refresh when a
file is modified outside of eclipse.
This is set in the preferences under General / Workspace


> Second one might be a bit more involved, but hopefully there is an
> easy fix. I have my projects into a subversion repository, but the app
> project builder (Android pre-compiler) seems to copy all the source
> from the library project, including the .svn folders, to the app/bin
> project. As a result of this, I get loads of files checked into the
> commit dialog, and I have uncheck all and then hunt down the files I
> actually changed. Is there any way to configure it to ignore .svn
> files when copying source? I realise that it has to merge source from
> both projects to create the final apk, but .svn files are surely not
> needed.

oh I just realize that the linked folder are not set as "derived"
which is the flag that makes Team plug-ins (such as svn) ignore
resources (for instance gen/ and everything under it is set as
derived).

I'll fix this.
xav




-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to