equal
deleted
inserted
replaced
|
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 |
|
30 annofile = sys.argv[1] |
|
31 |
|
32 sys.stdout.write("<build>\n") |
|
33 try: |
|
34 for l in XMLEscapeLog(AnnoFileParseOutput(annofile)): |
|
35 sys.stdout.write(l) |
|
36 |
|
37 except Exception,e: |
|
38 sys.stderr.write("error: " + str(e) + "\n") |
|
39 retcode = 1 |
|
40 sys.stdout.write("</build>\n") |
|
41 |
|
42 sys.exit(retcode) |