587
|
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 |
* <ctctask sbsinput="sbs.input" sysdefFile="system.def.file"
|
|
27 |
* workingDir="build.drive" failOnError="false"
|
|
28 |
* cleanLog="sbs.log.file.clean.log"
|
|
29 |
* failOnError="false"
|
|
30 |
* errorfile="path to error file"/>
|
|
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 |
}
|