Revision: | 1.4 |
Committed: | Fri Sep 29 06:45:51 2000 UTC (24 years, 7 months ago) by williamc |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | V0_19_5, SFATEST, V0_19_4, V0_19_4_pre3, V0_19_4_pre2, V0_19_4_pre1, V0_19_3, V0_19_2, V0_19_1, V0_19_0, V0_18_5, V0_18_4, V_18_3_TEST, VO_18_3, V0_18_2, V0_18_1 |
Branch point for: | V0_19_4_B, V0_16branch |
Changes since 1.3: | +18 -0 lines |
Log Message: | update from laptop |
# | Content |
---|---|
1 | # |
2 | # BuildReport.pm |
3 | # |
4 | # Originally Written by Christopher Williams |
5 | # |
6 | # Description |
7 | # |
8 | # Interface |
9 | # --------- |
10 | # new() : A new BuildReport object |
11 | # status() : Build exit status |
12 | # error([message]) : Add an error message - set pass to fail, return message |
13 | # list |
14 | # message([message]) : add an informational message |
15 | # report([BuildReport]) : add a BuildReport/ retrieve list of buildreports |
16 | |
17 | package BuildSystem::BuildReport; |
18 | require 5.004; |
19 | |
20 | sub new { |
21 | my $class=shift; |
22 | my $self={}; |
23 | bless $self, $class; |
24 | return $self; |
25 | } |
26 | |
27 | sub status { |
28 | my $self=shift; |
29 | if ( @_ ) { |
30 | $self->{status}=shift; |
31 | } |
32 | return $self->{status}; |
33 | } |
34 | |
35 | sub error { |
36 | my $self=shift; |
37 | if ( @_ ) { |
38 | push @{$self->{errormessage}}, shift; |
39 | } |
40 | return @{$self->{errormessage}}; |
41 | } |
42 | |
43 | sub message { |
44 | my $self=shift; |
45 | if ( @_ ) { |
46 | push @{$self->{message}}, shift; |
47 | } |
48 | return @{$self->{message}}; |
49 | } |
50 | |
51 | sub report { |
52 | my $self=shift; |
53 | if ( @_ ) { |
54 | push @{$self->{reports}}, shift; |
55 | } |
56 | return @{$self->{reports}}; |
57 | } |