spec/osgi/packaging_spec.rb in buildr4osgi-0.9.4 vs spec/osgi/packaging_spec.rb in buildr4osgi-0.9.5
- old
+ new
@@ -300,20 +300,20 @@
Zip::ZipFile.open(foo.package(:plugin).to_s) do |zip|
zip.find_entry("lib/slf4j-api-1.5.8.jar").should_not be_nil
end
end
- it "should add the libraries to the Bundle-Classpath" do
+ it "should add the libraries to the Bundle-ClassPath" do
foo = define("foo", :version => "1.0.0") do
compile.using :target=>'1.5'
package(:plugin).libs << SLF4J[0]
end
foo.package(:plugin).invoke
Zip::ZipFile.open(foo.package(:plugin).to_s) do |zip|
zip.find_entry("META-INF/MANIFEST.MF").should_not be_nil
- zip.read("META-INF/MANIFEST.MF").should match(/Bundle-Classpath: \.,lib\/slf4j-api-1\.5\.8\.jar/)
+ zip.read("META-INF/MANIFEST.MF").should match(/Bundle-ClassPath: \.,lib\/slf4j-api-1\.5\.8\.jar/)
end
end
end
@@ -367,12 +367,12 @@
manifest.should match(/Bundle-SymbolicName: dev/)
end
end
- it "should use the Bundle-Classpath entry whenever present to determine the classpath" do
- Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-Classpath: WEB-INF/classes"
+ it "should use the Bundle-ClassPath entry whenever present to determine the classpath" do
+ Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-ClassPath: WEB-INF/classes"
Buildr::write "src/main/java/Hello.java", "public class Hello {}"
foo = define("foo", :version => "1.0.0.qualifier") do
package(:bundle)
end
@@ -382,11 +382,11 @@
zip.find_entry("WEB-INF/classes/Hello.class").should_not be_nil
end
end
- it "should use the _first_ Bundle-Classpath entry whenever present to determine the classpath" do
- Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-Classpath: WEB-INF/classes,else"
+ it "should use the _first_ Bundle-ClassPath entry whenever present to determine the classpath" do
+ Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-ClassPath: WEB-INF/classes,else"
Buildr::write "src/main/java/Hello.java", "public class Hello {}"
foo = define("foo", :version => "1.0.0.qualifier") do
package(:bundle)
end
\ No newline at end of file