You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2008/11/06 22:11:24 UTC

svn commit: r711978 - /incubator/buildr/trunk/spec/java/packaging_spec.rb

Author: assaf
Date: Thu Nov  6 13:11:18 2008
New Revision: 711978

URL: http://svn.apache.org/viewvc?rev=711978&view=rev
Log:
Introduced spec to make sure specified manifest takes precedence over standard header.

Modified:
    incubator/buildr/trunk/spec/java/packaging_spec.rb

Modified: incubator/buildr/trunk/spec/java/packaging_spec.rb
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/java/packaging_spec.rb?rev=711978&r1=711977&r2=711978&view=diff
==============================================================================
--- incubator/buildr/trunk/spec/java/packaging_spec.rb (original)
+++ incubator/buildr/trunk/spec/java/packaging_spec.rb Thu Nov  6 13:11:18 2008
@@ -184,6 +184,14 @@
     end
   end
 
+  it 'should give precedence to version specified in manifest file' do
+    write 'MANIFEST.MF', 'Manifest-Version: 1.9'
+    package_with_manifest 'MANIFEST.MF'
+    inspect_manifest do |manifest|
+      manifest.main['Manifest-Version'].should == '1.9'
+    end
+  end
+
   it 'should create manifest from task' do
     file 'MANIFEST.MF' do |task|
       write task.to_s, 'Meta: data'