Sha256: 25e0dd88748278316027c4905a6f729527b0bf1ebf02b5f104b003af23e4c530

Contents?: true

Size: 648 Bytes

Versions: 55

Compression:

Stored size: 648 Bytes

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class TaskingLinkerErrorParser < ErrorParser

    def initialize()
      @error_expression = /.* (.+): (.*)/
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutput[0].each_line do |l|
        l.rstrip!
        d = ErrorDesc.new
        scan_res = l.scan(@error_expression)
        if scan_res.length > 0
          d.file_name = proj_dir
          d.line_number = 0
          d.message = scan_res[0][1]
          d.severity = get_tasking_severity(scan_res[0][0])
        end
        res << d
      end
      [res, consoleOutput[0]]
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
bake-toolkit-2.35.3 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.35.2 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.35.1 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.35.0 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.34.4 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.34.3 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.34.2 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.34.1 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.34.0 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.33.0 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.32.0 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.31.7 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.31.5 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.31.4 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb
bake-toolkit-2.31.2 lib/bake/toolchain/errorparser/tasking_linker_error_parser.rb