groovy

LoaderConfiguration is broken for relative paths

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-rc-1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

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()));

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: