Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2180

LoaderConfiguration is broken for relative paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-rc-1
    • None
    • None

    Description

      In Grails we have a config like this:

      	# load project resources
      	load ${base.dir}/lib/*.jar
      	load ${base.dir}/plugins/*/lib/*.jar
      

      The base.dir variable can sometimes be just "." which for a relative path. However a recent change to LoaderConfiguration has broken this. The problem is here:

      177:   Matcher m = pattern.matcher(getSlashyPath(file.getAbsolutePath()));
      

      It should be the following to allow relative paths:

      177:   Matcher m = pattern.matcher(getSlashyPath(file.getPath()));
      

      Attachments

        Activity

          People

            graemerocher Graeme Rocher
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: