lib/java/artifact.rb in buildr-1.2.9 vs lib/java/artifact.rb in buildr-1.2.10
- old
+ new
@@ -307,10 +307,9 @@
remote = remote.each { |repo_url| repo_url.path += "/" unless repo_url.path[-1] == "/" }
fail "No remote repositories defined!" if remote.empty?
exact_success = remote.find do |repo_url|
begin
path = "#{group_path}/#{id}/#{version}/#{File.basename(name)}"
- mkpath File.dirname(name), :verbose=>false
URI.download repo_url + path, name
true
rescue URI::NotFoundError
false
rescue Exception=>error