13
|
1 |
#
|
|
2 |
# Copyright (c) 2010 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 |
# Component description file
|
|
16 |
#
|
|
17 |
|
|
18 |
|
|
19 |
import sys
|
|
20 |
import os
|
|
21 |
sys.path.append(os.path.join(os.environ['SBS_HOME'],"python"))
|
|
22 |
|
|
23 |
from raptor_make import XMLEscapeLog
|
|
24 |
from raptor_make import AnnoFileParseOutput
|
|
25 |
|
|
26 |
|
|
27 |
retcode=0
|
|
28 |
|
|
29 |
|
18
|
30 |
if len(sys.argv) > 1:
|
|
31 |
annofile = sys.argv[1]
|
|
32 |
else:
|
|
33 |
annofile = sys.stdin
|
13
|
34 |
|
|
35 |
sys.stdout.write("<build>\n")
|
|
36 |
try:
|
|
37 |
for l in XMLEscapeLog(AnnoFileParseOutput(annofile)):
|
|
38 |
sys.stdout.write(l)
|
|
39 |
|
|
40 |
except Exception,e:
|
|
41 |
sys.stderr.write("error: " + str(e) + "\n")
|
|
42 |
retcode = 1
|
|
43 |
sys.stdout.write("</build>\n")
|
|
44 |
|
|
45 |
sys.exit(retcode)
|