buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject [29/50] git commit: It seems under windows with the low resolution of times on the filesystems that we need to explicitly delete the war from the previous task
Date Thu, 31 Jul 2014 05:12:43 GMT
It seems under windows with the low resolution of times on the filesystems that we need to
explicitly delete the war from the previous task

git-svn-id: https://svn.apache.org/repos/asf/buildr/trunk@1537910 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/f46168e9
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/f46168e9
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/f46168e9

Branch: refs/heads/master
Commit: f46168e9cfe8c1ac29d2a7353e5a85e665c236e0
Parents: 5cfc9a3
Author: Peter Donald <donaldp@apache.org>
Authored: Fri Nov 1 12:26:01 2013 +0000
Committer: Peter Donald <donaldp@apache.org>
Committed: Fri Nov 1 12:26:01 2013 +0000

----------------------------------------------------------------------
 spec/java/packaging_spec.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/f46168e9/spec/java/packaging_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/packaging_spec.rb b/spec/java/packaging_spec.rb
index 0b0c093..489d5e1 100644
--- a/spec/java/packaging_spec.rb
+++ b/spec/java/packaging_spec.rb
@@ -561,15 +561,15 @@ describe Packaging, 'war' do
       package(:war)
     end
     inspect_war { |files| files.should include('test.html') }
-    Zip::ZipFile.open(project('foo').package(:war).to_s, false) do |war|
+    Zip::ZipFile.open(project('foo').package(:war).to_s) do |war|
       war.get_input_stream('test.html').read.should eql('999')
     end
   end
 
   it 'should accept files from :classes option' do
-    write 'src/main/java/Test.java', 'class Test {}'
     write 'classes/test'
     define('foo', :version=>'1.0') { package(:war).with(:classes=>'classes') }
+    rm_f project('foo').package(:war).to_s
     inspect_war { |files| files.should include('WEB-INF/classes/test') }
   end
 


Mime
View raw message