4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/xcode_build/translations/cleaning.rb', line 4
def attempt_to_translate(line)
if line =~ /^\=\=\= CLEAN/
notify_clean_started(line)
end
return unless cleaning?
if line =~ /^\*\* CLEAN (\w+) \*\*/
notify_clean_ended($1)
return
end
if @beginning_clean_step
@beginning_clean_step = false
notify_clean_step(line) unless line.strip.empty?
return
end
if @beginning_error_report
if line =~ /^\(\d+ failure(s?)\)/
@beginning_error_report = false
else
notify_clean_step_failed(line)
end
end
case line
when /^error: (.*)$/
notify_clean_error($1)
when /^The following build commands failed:/
@beginning_error_report = true
when /^\n/
@beginning_clean_step = true
end
end
|