toolsandutils/buildsystem/tools/buildloggers/src/com/symbian/ant/AbldWhatLogger.java
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 package com.symbian.ant;
       
    17 
       
    18 import java.io.PrintStream;
       
    19 import org.apache.tools.ant.DefaultLogger;
       
    20 
       
    21 public class AbldWhatLogger extends DefaultLogger {
       
    22 	
       
    23 	protected void printMessage(String aMessage, PrintStream aPrintStream, int aPrioritary) {  
       
    24 		if (aMessage.indexOf("[echo]") >= 0) {
       
    25 			// remove "[echo]"
       
    26 			aMessage = aMessage.replace("[echo]", "");
       
    27 		} else {
       
    28 			aMessage = "";
       
    29 		}
       
    30 
       
    31 		// remove drive letter
       
    32 		aMessage = aMessage.replaceAll("[A-Z]:", "");
       
    33 
       
    34 		super.printMessage(aMessage, aPrintStream, aPrioritary);
       
    35 	}
       
    36 
       
    37 }