Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Merge requests
  • !577

IntelliJ project support for resources

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/illuminace/intellij-module-resources into master Dec 13, 2015
  • Overview 8
  • Commits 1
  • Pipelines 0
  • Changes 7

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" />
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/illuminace/intellij-module-resources