Skip to content

Commit

Permalink
working around the fact that jruby on windows doesn't glob correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mgatny committed Jan 23, 2013
1 parent d8da97a commit 3f83c38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AcceptanceTest/at_xml_to_nunit_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ def success?
end # module QuickFIXn

if $0 == __FILE__
unless ARGV.size > 1
puts "usage: #{$0} ERB_FILE XML_FILE..." unless ARGV.size > 1
unless ARGV.size > 0
puts "usage: #{$0} ERB_FILE [XML_FILE...]"
raise SystemExit.new(2)
end
require 'erb'
template = ARGV.shift
xml_files = Array.new(ARGV)
xml_files = (ARGV.empty?) ? Dir.glob("AcceptanceTests_*.xml") : Array.new(ARGV)
suite = QuickFIXn::Suite::create_from_acceptance_test_xml_list(xml_files)
erb = ERB.new(File.read(template))
puts erb.result(binding)
Expand Down

0 comments on commit 3f83c38

Please sign in to comment.