没有效果我想Scala的项目打包成一个罐子,用Buildrs 包()方法写特性的清单。包装方法具有Buildr
包似乎对舱单没有影响。下面是构建文件:
VERSION_NUMBER = "1.0.0"
GROUP = "Green"
COPYRIGHT = "Green CopyRight"
require 'buildr/scala'
Buildr::Scala::Scalac::REQUIRES.library = '2.8.0-SNAPSHOT'
Buildr::Scala::Scalac::REQUIRES.compiler = '2.8.0-SNAPSHOT'
Java.classpath.reject! { |c| c.to_s.index('scala') }
Java.classpath << Buildr::Scala::Scalac::REQUIRES
ENV['USE_FSC'] = 'yes'
repositories.remote << "http://www.ibiblio.org/maven2/"
desc "The Green project"
define "Green" do
project.version = VERSION_NUMBER
project.group = GROUP
package(:jar).with :manifest=>manifest.merge(
'Main-Class'=>'com.acme.Main',
'Implementation-Vendor'=>COPYRIGHT
)
end
而这里所产生的清单:
Build-By: brianheylin
Build-Jdk: 1.6.0_17
Implementation-Title: The Green project
Implementation-Version:
Implementation-Vendor:
Main-Class: green.GreenMain
Manifest-Version: 1.0
Created-By: Buildr
注意,无论是实现厂商或主类财产已被覆盖。我运行Buildr如下:
jruby -S buildr clean package
我使用jRuby 1.4.0和Buildr 1.3.5(安装为gem)。任何人有任何想法,为什么这是这种情况?
谢谢特拉维斯,我沿着相同的路线丹尼尔想,这似乎是特定的JRuby或斯卡拉2.8使用的错误。 – 2010-01-16 19:01:20
尽管在项目中定义了为什么Implementation-Version在这里丢失了? – Trejkaz 2014-06-15 03:57:19