jimweirich / rake

A make-like build utility for Ruby.
http://rake.rubyforge.org/
1.1k stars 10 forks source link

rake 10.2.0 breaks directory() for paths containing colons #262

Closed holtrop closed 10 years ago

holtrop commented 10 years ago

The following Rakefile works with rake 10.1.1 but breaks with rake 10.2.0:

dir = 'C:\directory'
directory(dir)
task :default => dir
rake aborted!
Don't know how to build task 'C:\directory'

Tasks: TOP => default
(See full trace by running task with --trace)

This problem occurs whenever absolute paths are used in Windows, but the problem also occurs on non-Windows systems whenever a colon exists in the directory path:

dir = "a:b"
directory(dir)
task :default => dir

Based on the listed changes, I'm guessing that this is due to pull request #232 since the name of the "directory" task has a ":" character within it.

holtrop commented 10 years ago

Thank you, 10.2.1 works great.