Skip to content

resourceconfig.json not including resources correctly #1316

@lyap1010

Description

@lyap1010

User defined resourceconfig.json doesn't include the resources correctly.

This issue is due to ConfigResolver looking for the following exact starting string for each line:
{"pattern"

Expected Behavior

resourceconfig.json should enable the defined resource pattern to be included as per JSON defined structure.

Current Behavior

The following resource pattern definition will fail to include the resources.
Expectation - this format should work:

[
  {
    "resources": [
      {
        "pattern": ".*\\.xml$"
      },
      {
        "pattern": ".*\\.properties$"
      }
    ]
  }
]

Following definition works - resources are loaded

[
  {
    "resources": [
        {"pattern": ".*\\.xml$"},
        {"pattern": ".*\\.properties$"}
    ]
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions