|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.mojo.javascript.titanium.TitaniumUtils
public class TitaniumUtils
Titanium utility class. Contains helper methods related to Titanium.
Field Summary | |
---|---|
static java.lang.String |
ENV_ANDROID_HOME
The android home environment variable name. |
Constructor Summary | |
---|---|
TitaniumUtils()
|
Method Summary | |
---|---|
static void |
checkVirtualDevice(java.lang.String platform,
TitaniumSettings settings,
VirtualDevice virtualDevice)
|
static boolean |
createAvd(java.io.File androidSdkHome,
java.lang.String avdId,
java.lang.String skin,
org.apache.maven.plugin.logging.Log log)
Create a new Android AVD. |
static java.lang.String |
getAndroidHome()
Retrieve the Android SDK home folder based on the ANDROID_HOME environment variable. |
static java.util.List<java.lang.Integer> |
getAvailableAndroidPlatformVersions(java.io.File androidSdkHome)
Retrieve the list of the available platforms for the specified Android SDK folder. |
static java.lang.String |
getLatestAndroidPlatformVersion(java.io.File androidSdkHome)
Retrieve the latest android API version of the specified android SDK |
static java.lang.String |
getLatestIosPlatformVersion()
|
static java.lang.String |
getOsClassifier()
|
static java.lang.String |
getTitaniumArtifactSdkPath(java.lang.String version,
java.io.File targetDir)
|
static java.lang.String |
getTitaniumSdkPath(java.lang.String version)
|
static boolean |
isAndroidEmulatorRunning(java.io.File androidSdkHome)
|
static boolean |
isAndroidVersionValid(java.io.File androidSdkHome,
java.lang.String version)
|
static boolean |
isIphoneVersionValid(java.lang.String version)
|
static java.util.List<java.lang.String> |
listAvailableIosPlatformVersions()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ENV_ANDROID_HOME
Constructor Detail |
---|
public TitaniumUtils()
Method Detail |
---|
public static java.lang.String getAndroidHome() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
- When the android environment is not specified.public static java.util.List<java.lang.Integer> getAvailableAndroidPlatformVersions(java.io.File androidSdkHome) throws org.apache.maven.plugin.MojoExecutionException
androidSdkHome
- The Android SDK home folder.
org.apache.maven.plugin.MojoExecutionException
- When the android SDK folder doesn't exist.public static java.lang.String getLatestAndroidPlatformVersion(java.io.File androidSdkHome) throws org.apache.maven.plugin.MojoExecutionException
androidSdkHome
- The android SDK home folder.
org.apache.maven.plugin.MojoExecutionException
- When The androidSdkHome is not valid.public static boolean isAndroidEmulatorRunning(java.io.File androidSdkHome) throws java.io.IOException
java.io.IOException
public static boolean createAvd(java.io.File androidSdkHome, java.lang.String avdId, java.lang.String skin, org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
androidSdkHome
- The android SDK home folder.avdId
- The android API version.skin
- The skin of the emulator.log
- The logging system.
org.apache.maven.plugin.MojoExecutionException
- When an error occured during the AVD creation.public static java.lang.String getOsClassifier()
public static java.lang.String getTitaniumSdkPath(java.lang.String version)
public static java.lang.String getTitaniumArtifactSdkPath(java.lang.String version, java.io.File targetDir)
public static boolean isAndroidVersionValid(java.io.File androidSdkHome, java.lang.String version) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static void checkVirtualDevice(java.lang.String platform, TitaniumSettings settings, VirtualDevice virtualDevice) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static boolean isIphoneVersionValid(java.lang.String version)
public static java.util.List<java.lang.String> listAvailableIosPlatformVersions()
public static java.lang.String getLatestIosPlatformVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |