-
Notifications
You must be signed in to change notification settings - Fork 0
rbm create avd
inazaruk edited this page Jan 19, 2012
·
23 revisions
Go to home | documentation | ant tasks
This task creates AVD from already defined AVD configuration (see rbm-avd-config) or from embedded configuration.
Option #1: create AVD from already existing AVD configuration (defined using rbm-avd-config):
<rbm-create-avd name="${avd.name}" avdconfig="${avd.config.name}" force="${force}" />Option #2: embed the AVD configuration (this has exactly the same semantics as in rbm-avd-config, with extra attribute name).
<rbm-create-avd name="${avd.name}" target="${avd.target}" force="${force}">
<abi type="${avd.abi}" />
<snapshot enable="${use.snapshots}" />
<sdcard size="${sdcard.size}" location="${sdcard.file}" />
<screen resolution="${resolution}" density="${density}" />
<hardware>
<ram size="${ram.size}" />
<heap size="${heap.size}" />
<arg key="${custom.hardware.arg}" value="${custom.hardware.arg.value}" />
</hardware>
</rbm-avd-config>All attributes that are not mentioned here can be looked up in rbm-avd-config.
-
name- required, name of AVD to be created. -
force- optional, default: false, if true and AVD with such name already exists, it will be delete and new one will be created. -
failIfExists- optional, default: true. If set to true build fails if AVD with suchnamealready exists. If set to false and AVD with suchnamealready exists, this AVD will be reused. Note that ifforceis set to true this attribute is ignored as AVD is re-created anyway. Be cautious when using this attribute. -
avdconfig- optional, if this attribute is specified then embedded configuration is going to be ignored. If this attribute is not specified then embedded configuration must be specified.
See rbm-avd-config for how to specify embedded configuration.
See rbm-avd-config for examples for embedded configurations.
Here is an example with referenced configuration (i.e. Option #1):
<rbm-create-avd name="test-avd15" avdconfig="avd15" force="true"/>Go to home | documentation | ant tasks