|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.Extension
de.enough.polish.emulator.Emulator
de.enough.polish.emulator.BlackBerryEmulator
public class BlackBerryEmulator
Invokes a specific BlackBerry simulator.
history
29-Dec-2009 - David refactored JDE detection
- Better linux support, Wine can be specified by wine.cmd
30-Dec-2009 - David Blackberry Emultors work completely in wine now.
07-April-2010 - David improved BB coded by using BlackBerryUtils.
| Field Summary |
|---|
| Fields inherited from class de.enough.polish.emulator.Emulator |
|---|
device, emulatorSetting, isFinished |
| Fields inherited from class de.enough.polish.Extension |
|---|
antProject, autoStartCondition, environment, extensionDefinition, extensionManager, extensionSetting, extensionTypeDefinition, isBuildStarted |
| Constructor Summary | |
|---|---|
BlackBerryEmulator()
|
|
| Method Summary | |
|---|---|
protected int |
exec(String[] args,
String info,
boolean wait,
OutputFilter filter,
File execDir)
Executes the actual emulator. |
void |
filter(String logMessage,
PrintStream output)
Filters the given message. |
String[] |
getArguments()
Retrieves the arguments which are used to start the emulator. |
File |
getEmulator(Device dev,
Environment env)
Retrieves the emulator executable |
protected File |
getExecutionDir()
Retrieves the directory in which the emulator should be executed. |
boolean |
init(Device dev,
EmulatorSetting setting,
Environment env)
Starts the emulator for the given device. |
| Methods inherited from class de.enough.polish.emulator.Emulator |
|---|
addDebugArguments, createEmulator, execute, getParameter, getParameters, getParameterValue, isFinished, run, run, supportsDebugger, writeProperties |
| Methods inherited from class de.enough.polish.Extension |
|---|
configure, executeAntTarget, executeAntTarget, finalize, getAntProject, getAutoStartCondition, getEnvironment, getExtensionDefinition, getExtensionSetting, getInstance, getParameterValue, getType, init, initialize, isConditionFulfilled, notifyBuildEnd, notifyBuildStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlackBerryEmulator()
| Method Detail |
|---|
public boolean init(Device dev,
EmulatorSetting setting,
Environment env)
Emulator
init in class Emulatordev - the current devicesetting - the settingenv - all Ant- and polish-properties for the parameter-values
public String[] getArguments()
Emulator
getArguments in class Emulatorprotected File getExecutionDir()
Emulator
getExecutionDir in class Emulator
protected int exec(String[] args,
String info,
boolean wait,
OutputFilter filter,
File execDir)
throws IOException
Emulator
exec in class Emulatorargs - all command line argumentsinfo - the info block for output messageswait - true when the current thread should blockfilter - the output filterexecDir - the director for executing the emulator
IOException - when the emulator process could not be invoked
public void filter(String logMessage,
PrintStream output)
Emulator
filter in interface OutputFilterfilter in class EmulatorlogMessage - the messageoutput - the stream to which the message should be written (if not filtered)
public File getEmulator(Device dev,
Environment env)
dev - the current deviceenv - the environment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||