buildframework/helium/sf/java/sbs/src/com/nokia/helium/sbs/ant/taskdefs/CTCTask.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/sf/java/sbs/src/com/nokia/helium/sbs/ant/taskdefs/CTCTask.java Tue Apr 27 08:33:08 2010 +0300
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+*
+*/
+package com.nokia.helium.sbs.ant.taskdefs;
+
+/**
+ * This task is to execute the CTCWrap command with the list of sbs parameters
+ * using sbsinput type. Based on the raptor input list of additional log file path
+ * used needs to be set, so that the scanlog, additional log files are generated
+ * properly.
+ *
+ * <pre>
+ * <ctctask sbsinput="sbs.input" sysdefFile="system.def.file"
+ * workingDir="build.drive" failOnError="false"
+ * cleanLog="sbs.log.file.clean.log"
+ * failOnError="false"
+ * errorfile="path to error file"/>
+ * </pre>
+ *
+ * @ant.task name="ctctask" category="SBS"
+ */
+public class CTCTask extends SBSTask {
+
+ private String instrumentType = "m";
+
+ public CTCTask() {
+ super();
+ getSbsCmd().setExecutable("ctcwrap");
+ }
+
+ public void setInstrumentType(String i)
+ {
+ instrumentType = i;
+ }
+
+ protected String getSBSCmdLine() {
+ return "-i " + instrumentType + " sbs" + super.getSBSCmdLine();
+ }
+
+}