buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1400400 - /buildr/trunk/spec/java/packaging_spec.rb
Date Sat, 20 Oct 2012 09:42:38 GMT
Author: donaldp
Date: Sat Oct 20 09:42:37 2012
New Revision: 1400400

URL: http://svn.apache.org/viewvc?rev=1400400&view=rev
Log:
Use mode that works under windows

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

Modified: buildr/trunk/spec/java/packaging_spec.rb
URL: http://svn.apache.org/viewvc/buildr/trunk/spec/java/packaging_spec.rb?rev=1400400&r1=1400399&r2=1400400&view=diff
==============================================================================
--- buildr/trunk/spec/java/packaging_spec.rb (original)
+++ buildr/trunk/spec/java/packaging_spec.rb Sat Oct 20 09:42:37 2012
@@ -204,7 +204,8 @@ shared_examples_for 'package with manife
     package.invoke
     Zip::ZipFile.open(package.to_s) do |zip|
       permissions = format("%o", zip.file.stat('META-INF/MANIFEST.MF').mode)
-      permissions.should match /644$/
+      expected_mode = Buildr::Util.win_os? ? /666$/ : /644$/
+      permissions.should match expected_mode
     end
   end
 



Mime
View raw message