Closed nhaarman closed 5 years ago
Thanks for this @nhaarman. Seems like you've changed the support for the Eclipse way, no? Can you just add support for the build directory instead of removing existing support?
Not to my knowledge, no. The res
folder in Eclipse is in the root folder, with the raw
folder directly beneath it, right? This is basically a depth-first search, with a matching criteria of not being in a build
folder, and where the folder name equals raw
with a parent folder named res
.
The only thing that could happen is there is another folder matching those criteria somewhere else, but I don't believe this is the case.
The only thing that could happen is there is another folder matching those criteria somewhere else, but I don't believe this is the case.
If you are using flavours this case is possible.
A solution: count the number of */res/raw/
. If there's only one use this one else throw an exception. What do you think?
Gradle uses a different folder structure compared to Eclipse. This does a more extensive search for the raw folder.