equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of the License "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # Filter class for doing --what and --check operations |
|
16 # |
|
17 |
|
18 import os |
|
19 import sys |
|
20 import re |
|
21 import filter_interface |
|
22 import filter_what |
|
23 |
|
24 class FilterWhatComp(filter_what.FilterWhat): |
|
25 |
|
26 def write(self, text): |
|
27 "process some log text" |
|
28 |
|
29 for line in text.splitlines(): |
|
30 ok =filter_what.FilterWhat.write(self, line) |
|
31 if not ok: |
|
32 break |
|
33 |
|
34 self.ok = ok |
|
35 return self.ok |
|
36 |
|
37 def start_bldinf(self,bldinf): |
|
38 if "win" in self.buildparameters.platform: |
|
39 dir = os.path.dirname(bldinf.replace("/","\\")) |
|
40 else: |
|
41 dir = os.path.dirname(bldinf) |
|
42 |
|
43 self.outfile.write("-- abld -w \nChdir %s \n" % dir) |
|
44 |
|
45 def end_bldinf(self): |
|
46 self.outfile.write("++ Finished\n") |