Hi, I just copied/moved a scala class from a scala subproject to a java subproject (core/shared) to have it available there.
I invoked buildr eclipse, to get the java subproject becoming a
scala/java subproject. This resulted in
Missing artifact identifier for {:group=>"/opt/scala/lib/scala-library.jar"}
When invoked with -t, the output looks like this:
Missing artifact identifier for {:group=>"/opt/scala/lib/scala-library.jar"}
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/packaging/artifact.rb:260:in
`to_hash'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/packaging/artifact.rb:271:in
`to_hash'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/packaging/artifact.rb:611:in
`artifact'
./etc/tools.rb:203:in `removeDups'
./etc/tools.rb:200:in `each'
./etc/tools.rb:200:in `removeDups'
/home/grotzke/proj/freiheit/final_folder/buildfile:87
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:225:in
`instance_eval'
/usr/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:225:in
`define'
The removeDups is this:
def removeDups(deps)
libs = deps.flatten.compact.uniq
libs_by_id = {}
libs.each do |lib|
#puts "Have artifact " + lib.inspect
if lib.is_a?(Buildr::Artifact) || lib.kind_of?(String)
lib = artifact(lib)
if libs_by_id[lib.id].nil?
libs_by_id[lib.id] = lib
else
libs_by_id[lib.id] = lib if libs_by_id[lib.id].version <
lib.version
end
else
libs_by_id[lib.object_id] = lib
end
end
libs = libs_by_id.values
end
where line 203 is
lib = artifact(lib)
(after if lib.is_a?(Buildr::Artifact) || lib.kind_of?(String))
Has this to be improved somehow?
Thanx && cheers,
Martin
signature.asc
Description: This is a digitally signed message part
