Resources Plugin
  1. Resources Plugin
  2. GPRESOURCES-134

Grails/Resources fails to provide a mean to specify a certain plugin as source for a resource

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Labels:
      None

      Description

      When there are multiple plugins providing the same file, grails just takes one of them in an unclear manner.

      E.g.: modules = { core

      { resource uri='/images/favicon.ico' }

      }

      Many plugins provide the default grails favicon, thus the above declaration fails to point to the correct one. The documentation has no info on how to do it or if it's actually possible.

      Something like this would be good: modules = { core

      { resource uri='/images/favicon.ico', plugin='myguiplugin' }

      }

      A current workaround is to rename the file in question and hope that no other plugin will ever provide a file with the same name.

        Activity

        Hide
        Marc Palmer added a comment -

        Use the existing support for this:

        resource uri:[dir:'css', file:'xxx.css', plugin:'whateverName']

        Show
        Marc Palmer added a comment - Use the existing support for this: resource uri: [dir:'css', file:'xxx.css', plugin:'whateverName']
        Hide
        Bernhard Areich added a comment -

        I tried that already. It destroys the whole output of the site and gives only two warnings in the console:

        ["http-bio-8080"-exec-3] WARN ResourceTagLib | A request was made to render resources for disposition [head] but there are no resources scheduled for that disposition, or it has already been rendered
        ["http-bio-8080"-exec-3] WARN ResourceTagLib | A request was made to render resources for disposition [defer] but there are no resources scheduled for that disposition, or it has already been rendered

        Show
        Bernhard Areich added a comment - I tried that already. It destroys the whole output of the site and gives only two warnings in the console: ["http-bio-8080"-exec-3] WARN ResourceTagLib | A request was made to render resources for disposition [head] but there are no resources scheduled for that disposition, or it has already been rendered ["http-bio-8080"-exec-3] WARN ResourceTagLib | A request was made to render resources for disposition [defer] but there are no resources scheduled for that disposition, or it has already been rendered

          People

          • Assignee:
            Marc Palmer
            Reporter:
            Bernhard Areich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: