-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AccessDeniedException when two resources have the same filename but different paths #2629
Comments
Thanks for reporting! Does it happen all the time for you? We copy files to the same structure, but I noticed multiple times that there might be multiple threads trying to copy things, which shouldn't actually happen since we do lock files to only copy one time per target path. |
Well, all the resource files are being copied into the top level 'classes' path... they don't seem to be retaining any original structure. So the two entries would step on eachother. In the bloop config, the files are each separate entries:
Note, using bloop v2.0.8. (probably different issue, but I'm noticing in some projects the resources are being copied to the classes dir, but on others they are not being copied at all. ) |
There is no way to preserve the structure if the files have the same name. You would have to include "C:\myproject\resources" instead. It's the same as with classpath, you would only have one of those files loaded from classpath. So overall, having resources as files and same name can't really be done. |
That is until we do (#2592). Can't wait :) Regardless, it did break our builds which was not expected. We'll just have to not put in the resources into the config for now till #2592 is done, but then our test and run (that uses the file resources) won't work properly till then. |
In my project's 'resources', I have two files with the same filename but different paths. They are both listed in the bloop config "resources" section. When I build, Bloop throws AccessDeniedException (see below).
This is likely due to change made in #1631 .
Ideally the resources would be put in their appropriate place in the 'classes' folder, then everything would work. But that would take some more specification in the bloop config, or mapping (#2592), or heuristics.
Below is the error I get... in bloop config I have listed in resources both a LowEnd\Quad.glsl and a HighEnd\Quad.glsl.
The text was updated successfully, but these errors were encountered: