587
|
1 |
/*
|
628
|
2 |
* Copyright (c) 2007-2008 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:To print the message on the shell in case of build fails for deffered Signals.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
587
|
18 |
package com.nokia.helium.signal;
|
|
19 |
|
628
|
20 |
import org.apache.log4j.Logger;
|
587
|
21 |
import org.apache.tools.ant.Project;
|
628
|
22 |
import org.apache.tools.ant.types.DataType;
|
|
23 |
|
587
|
24 |
import com.nokia.helium.core.ant.HlmExceptionHandler;
|
|
25 |
|
|
26 |
/**
|
|
27 |
* Class to check the signal is present in the deferred and now signal list.
|
|
28 |
* Print the message on the shell "Build completed with errors and warnings".
|
|
29 |
*
|
|
30 |
*/
|
|
31 |
|
628
|
32 |
public class SignalExceptionMessage extends DataType implements
|
|
33 |
HlmExceptionHandler {
|
587
|
34 |
private Logger log = Logger.getLogger(SignalExceptionMessage.class);
|
628
|
35 |
|
587
|
36 |
/**
|
|
37 |
* Implements the Exception method to print the build completed message.
|
628
|
38 |
*
|
587
|
39 |
* @param project
|
|
40 |
* @param module
|
|
41 |
* @param e
|
|
42 |
*/
|
628
|
43 |
public void handleException(Project project, Exception e) {
|
|
44 |
|
587
|
45 |
if (SignalStatusList.getDeferredSignalList().hasSignalInList()) {
|
|
46 |
log.info("Build completed with errors and warnings.");
|
|
47 |
}
|
628
|
48 |
|
587
|
49 |
if (SignalStatusList.getNowSignalList().hasSignalInList()) {
|
|
50 |
log.info("Build completed with errors and warnings.");
|
|
51 |
}
|
|
52 |
}
|
|
53 |
} |