Issue Details (XML | Word | Printable)

Key: GROOVY-2180
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Graeme Rocher
Reporter: Graeme Rocher
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

LoaderConfiguration is broken for relative paths

Created: 08/Oct/07 05:18 AM   Updated: 08/Oct/07 07:19 AM   Resolved: 08/Oct/07 07:19 AM
Return to search
Component/s: None
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified


 Description  « Hide

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


There are no comments yet on this issue.