Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Labels:
      None

      Description

      S4RLoader should load resources from jars. This could be accomplished overriding findResource() or directly getResource()/getResourceAsStream().

      User resources should also take precedence over dependencies resources. Right now dependencies are exploded and packaged on a single JAR causing all resources to be at the same level, possibly conflicting with each other. There are a couple of options to solve this:

      • Specify a directory for user resources which will be searched before any other directory
      • Don't explode dependencies, packaging them as JARs. Only user resources would be at top level

        Activity

        Daniel Gómez Ferro created issue -
        Matthieu Morel made changes -
        Field Original Value New Value
        Fix Version/s 0.5 [ 12318653 ]
        Affects Version/s 0.5 [ 12318653 ]
        Daniel Gómez Ferro made changes -
        Summary S4RLoader should load resources Resource Loading
        Description S4RLoader should also load resources from jars. This could be accomplished overriding {{findResource()}} or directly {{getResource()/getResourceAsStream()}}.

        Some libraries expect configuration files on the classpath and try to load their resources using these APIs.
        S4RLoader should load resources from jars. This could be accomplished overriding {{findResource()}} or directly {{getResource()/getResourceAsStream()}}.

        User resources should also take precedence over dependencies resources. Right now dependencies are exploded and packaged on a single JAR causing all resources to be at the same level, possibly conflicting with each other. There are a couple of options to solve this:
           * Specify a directory for user resources which will be searched before any other directory
           * Don't explode dependencies, packaging them as JARs. Only user resources would be at top level
        Matthieu Morel made changes -
        Summary Resource Loading Resource loading from S4R
        Matthieu Morel made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Matthieu Morel [ mmorel ]
        Resolution Fixed [ 1 ]
        Tony Stevenson made changes -
        Workflow jira [ 12709963 ] no-reopen-closed, patch-avail [ 12711373 ]

          People

          • Assignee:
            Matthieu Morel
            Reporter:
            Daniel Gómez Ferro
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development