Created by: illuminace
Summary:
Source and test roots are supported in generated IntelliJ projects, but there is no means at present to supply resource roots. This adds an optional resource_roots
argument to the project_config
build rule, which adds java-resource
sourceFolder
elements to the project's .iml config
Test Plan:
Add a resource_roots
declaration to a project_config, run buck project, and verify both that the java-resource
is present in the generated iml file, and that IntelliJ picks up the resource directory.
project_config(
...normal project config... ,
resource_roots = [ 'res' ]
)
results in
<sourceFolder url="file://$MODULE_DIR$/res" type="java-resource" />