buildframework/helium/sf/java/sbs/src/com/nokia/helium/sbs/ant/taskdefs/CTCTask.java
changeset 587 85df38eb4012
child 588 c7c26511138f
child 618 df88fead2976
equal deleted inserted replaced
217:0f5e3a7fb6af 587:85df38eb4012
       
     1 /*
       
     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:  
       
    15 *
       
    16 */
       
    17 package com.nokia.helium.sbs.ant.taskdefs;
       
    18 
       
    19 /**
       
    20  * This task is to execute the CTCWrap command with the list of sbs parameters
       
    21  * using sbsinput type. Based on the raptor input list of additional log file path
       
    22  * used needs to be set, so that the scanlog, additional log files are generated 
       
    23  * properly.
       
    24  * 
       
    25  * <pre>
       
    26  * &lt;ctctask sbsinput=&quot;sbs.input&quot; sysdefFile=&quot;system.def.file&quot;
       
    27  *      workingDir=&quot;build.drive&quot; failOnError=&quot;false&quot; 
       
    28  *      cleanLog=&quot;sbs.log.file.clean.log&quot; 
       
    29  *      failOnError=&quot;false&quot; 
       
    30  *      errorfile=&quot;path to error file&quot;/&gt;
       
    31  * </pre>
       
    32  * 
       
    33  * @ant.task name="ctctask" category="SBS"
       
    34  */
       
    35 public class CTCTask extends SBSTask {
       
    36     
       
    37     private String instrumentType = "m";
       
    38     
       
    39     public CTCTask() {
       
    40         super();
       
    41         getSbsCmd().setExecutable("ctcwrap");
       
    42     }
       
    43     
       
    44     public void setInstrumentType(String i)
       
    45     {
       
    46         instrumentType = i;
       
    47     }
       
    48     
       
    49     protected String getSBSCmdLine() {
       
    50         return "-i " + instrumentType + " sbs" + super.getSBSCmdLine();
       
    51     }
       
    52 
       
    53 }