You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by do...@apache.org on 2013/11/01 14:11:59 UTC
svn commit: r1537926 - /buildr/trunk/spec/java/packaging_spec.rb
Author: donaldp
Date: Fri Nov 1 13:11:58 2013
New Revision: 1537926
URL: http://svn.apache.org/r1537926
Log:
Remove the package created via filter in the same block that creates it. Thus it does not matter what order the blocks execute in
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=1537926&r1=1537925&r2=1537926&view=diff
==============================================================================
--- buildr/trunk/spec/java/packaging_spec.rb (original)
+++ buildr/trunk/spec/java/packaging_spec.rb Fri Nov 1 13:11:58 2013
@@ -564,12 +564,12 @@ describe Packaging, 'war' do
Zip::ZipFile.open(project('foo').package(:war).to_s) do |war|
war.get_input_stream('test.html').read.should eql('999')
end
+ rm_f project('foo').package(:war).to_s
end
it 'should accept files from :classes option', :retry => (Buildr::Util.win_os? ? 4 : 1) do
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