Author: donaldp
Date: Fri Nov 1 12:26:01 2013
New Revision: 1537910
URL: http://svn.apache.org/r1537910
Log:
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
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=1537910&r1=1537909&r2=1537910&view=diff
==============================================================================
--- buildr/trunk/spec/java/packaging_spec.rb (original)
+++ buildr/trunk/spec/java/packaging_spec.rb Fri Nov 1 12:26:01 2013
@@ -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