Flex Builder Warning – “Source path entry, …, is a subdirectory of source path entry”

If you have two Flex projects sharing the same parent folder like this:

/Users/your-name/Documents/your-dev-path/ProjectOne

/Users/your-name/Documents/your-dev-path/ProjectTwo

and ProjectTwo refers to ProjectOne in the “Flex Build Path” settings, you’ll get this warning:

Source path entry, ‘/Users/your-name/Documents/your-dev-path/ProjectOne’, is a subdirectory of source path entry, ‘/Users/your-name/Documents/your-dev-path/ProjectTwo/src’.

I don’t know about you, but compile warnings really bug me.  If there is really a problem, I’ll address it directly, but in this case, there is nothing wrong. So to remove this warning from your build, add this to your compile settings:

-allow-source-path-overlap=true