|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.plugin.AbstractMojo org.codehaus.mojo.javascript.AbstractTitaniumPackageMojo
public abstract class AbstractTitaniumPackageMojo
Titanium package abstract base class;
Field Summary | |
---|---|
protected java.lang.String |
androidAPI
The version of the platform for which the code should be compiled. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
|
protected java.lang.String |
executeMode
The package execution mode. |
protected java.lang.String |
iosDevelopmentCertificate
The ios Development certificate. |
protected java.lang.String |
iosDevelopmentProvisioningProfile
The iOS development provisioning profile. |
protected java.lang.String |
iosDistributionCertificate
The ios Distribution certificate. |
protected java.lang.String |
iosDistributionProvisioningProfile
The ios distribution provisioning profile. |
protected java.lang.String |
iosVersion
The version of the platform for which the code should be compiled. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
|
protected java.io.File |
outputDirectory
The output directory of the packaged titanium files. |
protected java.lang.String |
platform
The platform for which the code should be packaged. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected java.util.List |
remoteRepositories
|
protected TitaniumSettings |
titaniumSettings
The titanium settings. |
protected java.lang.String |
titaniumVersion
The titanium SDK version to use. |
protected VirtualDevice |
virtualDevice
Virtual device configuration. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AbstractTitaniumPackageMojo()
|
Method Summary | |
---|---|
protected boolean |
checkPomSettings()
Check the titanium pom settings. |
protected void |
downloadTitaniumFromRepositories(java.lang.String tiVersion,
java.io.File targetDir)
|
protected void |
extractZipFile(java.io.File zipFile,
java.io.File destFolder)
|
protected java.lang.String |
getAndroidAPI()
Retrieve the android API to use when building the application. |
protected java.lang.String |
getIosVersion()
Retrieve the ios platform version. |
protected java.io.File |
getTiProjectDirectory()
Retrieve the titanium project folder for the specified platform. |
protected TitaniumSettings |
getTitaniumSettings()
Retrieve the TitaniumSettings object. |
protected VirtualDevice |
getVirtualDevice()
Retrieve the VirtualDevice object. |
protected java.io.File |
resolveAndroidBuilder()
|
protected java.io.File |
resolveIOSBuilder()
|
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
---|
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.plugin.Mojo |
---|
execute |
Field Detail |
---|
protected java.lang.String platform
The platform for which the code should be packaged.
Supported platforms are:
protected java.lang.String androidAPI
The version of the platform for which the code should be compiled.
This is the version of the library to use to compile the application.
It's possible to specify another android API for the android virtual device.
See VirtualDevice.androidAPI
.
protected java.lang.String iosVersion
protected java.lang.String titaniumVersion
protected TitaniumSettings titaniumSettings
The titanium settings.
Contains various information needed to execute a titanium build.
Here's the list of the titaniumSettings parameters:
TitaniumSettings.androidBuilder
titaniumVersion
TitaniumSettings.iosBuilder
titaniumVersion
TitaniumSettings.androidSDK
TitaniumSettings.keystore
TitaniumSettings.keystorePassword
TitaniumSettings.keystoreAlias
TitaniumSettings.iosDevelopmentProvisioningProfile
executeMode
is virtual
or device
.TitaniumSettings.iosDistributionProvisioningProfile
executeMode
is none
.TitaniumSettings.iosDevelopmentCertificate
executeMode
is virtual
or device
.TitaniumSettings.iosDistributionCertificate
executeMode
is none
.
protected VirtualDevice virtualDevice
Virtual device configuration.
When executeMode
is virtual,
the parameters in virtualDevice are used to configure the
android emulator or iphone simulator.
VirtualDevice has the following parameters:
VirtualDevice.androidAPI
VirtualDevice.iosVersion
VirtualDevice.skin
VirtualDevice.family
iphone
or ipad
.VirtualDevice.wait
VirtualDevice
protected java.lang.String executeMode
The package execution mode.
Allow the execution of the package on an emulator/device.
Values are:
virtualDevice
.
protected java.io.File outputDirectory
protected java.lang.String iosDevelopmentCertificate
protected java.lang.String iosDistributionCertificate
protected org.apache.maven.project.MavenProject project
protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected java.util.List remoteRepositories
protected java.lang.String iosDevelopmentProvisioningProfile
protected java.lang.String iosDistributionProvisioningProfile
Constructor Detail |
---|
public AbstractTitaniumPackageMojo()
Method Detail |
---|
protected java.lang.String getIosVersion()
Retrieve the ios platform version.
If the ios platform version is not specified, retrieve one from the XCode installation.
protected java.lang.String getAndroidAPI() throws org.apache.maven.plugin.MojoExecutionException
Retrieve the android API to use when building the application.
If the android API is not specified, the latest one is retrieved based on the Android SDK location.
org.apache.maven.plugin.MojoExecutionException
protected java.io.File getTiProjectDirectory()
protected TitaniumSettings getTitaniumSettings()
Retrieve the TitaniumSettings object.
If titaniumSettings
is null, a new TitaniumSettings
is constructed based on the specified expressions.
androidSDKPath
,
iosBuilderPath
,
androidBuilderPath
,
titaniumSettingsKeystore
,
titaniumSettingsKeystorePassword
,
titaniumSettingsKeystoreAlias
protected VirtualDevice getVirtualDevice()
Retrieve the VirtualDevice object.
If virtualDevice
is null, a new VirtualDevice
is constructed based on the specified expressions.
virtualDeviceAndroidAPI
,
virtualDeviceFamily
,
virtualDeviceIosVersion
,
virtualDeviceSkin
,
virtualDeviceWait
protected boolean checkPomSettings() throws org.apache.maven.plugin.MojoExecutionException
Check the titanium pom settings.
Mainly check if the androidAPI
or the iosVersion
parameters are valid.
org.apache.maven.plugin.MojoExecutionException
- If an error occurs.protected void downloadTitaniumFromRepositories(java.lang.String tiVersion, java.io.File targetDir) throws org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.ArtifactNotFoundException, java.io.IOException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
java.io.IOException
protected java.io.File resolveAndroidBuilder() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.io.File resolveIOSBuilder() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void extractZipFile(java.io.File zipFile, java.io.File destFolder) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |