com.symbian.et.test.controller.visitor
Class BuildCommand

java.lang.Object
  extended bycom.symbian.et.test.controller.visitor.BuildCommand

public class BuildCommand
extends java.lang.Object

Author:
EngrineeringTools

Field Summary
static java.lang.String ABLD_BAT
          Literal for "abld.bat".
static java.lang.String BLDFILES
          Literal for "bldfiles".
static java.lang.String BLDMAKE_BAT
          Literal for "bldmake.bat".
static java.lang.String BUILD
          Literal for "build".
static java.lang.String CLEAN
          Literal for "clean".
static java.lang.String EPOC32_REL_PLAT_VAR
          Literal for "epoc32/release/".
static java.lang.String REALLYCLEAN
          Literal for "reallyclean".
static java.lang.String SYS_BIN
          Literal for "c:\sys\bin".
protected static java.lang.String SYS_DATA
          Literal for "c:\system\data".
static java.lang.String TARGET
          Literal for "target".
static java.lang.String TEST
          Literal for "test".
static java.lang.String WHAT
          Literal for "-what".
 
Constructor Summary
BuildCommand()
           
 
Method Summary
static void doAfterBuild(com.symbian.et.test.engine.TaskSet aTaskSet, java.util.Vector lTransferFileVector)
          Does post-processing for the build commands.
static void doBeforeBuild(java.io.File aGroupDir, int aTimeout)
          Runs operations nessary before a build.
static java.util.Vector doBuild(java.io.File aGroupDir, boolean aBuildType, java.lang.String aComponent, int aTimeout)
          Builds the Symbian code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_BIN

public static final java.lang.String SYS_BIN
Literal for "c:\sys\bin".

See Also:
Constant Field Values

SYS_DATA

protected static final java.lang.String SYS_DATA
Literal for "c:\system\data".

See Also:
Constant Field Values

WHAT

public static final java.lang.String WHAT
Literal for "-what".

See Also:
Constant Field Values

EPOC32_REL_PLAT_VAR

public static final java.lang.String EPOC32_REL_PLAT_VAR
Literal for "epoc32/release/".


TARGET

public static final java.lang.String TARGET
Literal for "target".

See Also:
Constant Field Values

BUILD

public static final java.lang.String BUILD
Literal for "build".

See Also:
Constant Field Values

TEST

public static final java.lang.String TEST
Literal for "test".

See Also:
Constant Field Values

REALLYCLEAN

public static final java.lang.String REALLYCLEAN
Literal for "reallyclean".

See Also:
Constant Field Values

BLDFILES

public static final java.lang.String BLDFILES
Literal for "bldfiles".

See Also:
Constant Field Values

CLEAN

public static final java.lang.String CLEAN
Literal for "clean".

See Also:
Constant Field Values

BLDMAKE_BAT

public static final java.lang.String BLDMAKE_BAT
Literal for "bldmake.bat".

See Also:
Constant Field Values

ABLD_BAT

public static final java.lang.String ABLD_BAT
Literal for "abld.bat".

See Also:
Constant Field Values
Constructor Detail

BuildCommand

public BuildCommand()
Method Detail

doBeforeBuild

public static void doBeforeBuild(java.io.File aGroupDir,
                                 int aTimeout)
                          throws java.io.IOException,
                                 java.lang.InterruptedException
Runs operations nessary before a build. This includes the following tasks:

Parameters:
aGroupDir - The group directory containing the bld.inf file.
aTimeout - The maximun time the build operation should take before being terminated.
Throws:
java.io.IOException - If the group directory path doesn't contain a bld.inf file.
java.lang.InterruptedException - If bldmake or abld could not complete sucessfully.

doBuild

public static java.util.Vector doBuild(java.io.File aGroupDir,
                                       boolean aBuildType,
                                       java.lang.String aComponent,
                                       int aTimeout)
                                throws java.io.IOException,
                                       java.lang.InterruptedException
Builds the Symbian code.

Parameters:
aGroupDir - The group directory containing the bld.inf file.
aBuildType - If true then will run "abld test build", else if false then it will run "abld build".
aComponent - The mmp target.
aTimeout - The maximun time for the build operations to run before being terminated.
Returns:
The list of exported build targets.
Throws:
java.io.IOException - If reading the output of the build commands failed.
java.lang.InterruptedException - If the build commands thread was interupted

doAfterBuild

public static void doAfterBuild(com.symbian.et.test.engine.TaskSet aTaskSet,
                                java.util.Vector lTransferFileVector)
                         throws java.io.IOException
Does post-processing for the build commands. Specifically adds the exports to be transfered to the Symbian device.

Parameters:
aTaskSet - The task set to add the export to.
lTransferFileVector - The vector of all the exported targets from the build operation.
Throws:
java.io.IOException - If there is an I/O error with the exported targets.