diff --git a/lib/cerberus/builder/maven2.rb b/lib/cerberus/builder/maven2.rb index cf7cd98..98ade3f 100644 --- a/lib/cerberus/builder/maven2.rb +++ b/lib/cerberus/builder/maven2.rb @@ -31,10 +31,9 @@ class Cerberus::Builder::Maven2 $` =~ /^(.|\n)*Running (.*)$/ failed_class = $2 @output << $` << $& << ' <<< FAILURE!' - surefire_report_filename = "#{@config[:application_root]}/target/surefire-reports/#{failed_class}.txt" - @output << "\n" << IO.readlines(surefire_report_filename)[4..-1].join.lstrip if File.exist?(surefire_report_filename) #map{|str| ' ' + str}..gsub(' <<< FAILURE!','') + @output << "\n" << IO.readlines("#{@config[:application_root]}/target/surefire-reports/#{failed_class}.txt")[4..-1].join.lstrip #map{|str| ' ' + str}..gsub(' <<< FAILURE!','') str = s end @output << str end -end +end \ No newline at end of file