org.codehaus.mojo.javascript
Class TitaniumPreparePackage

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.javascript.AbstractCompressMojo
          extended by org.codehaus.mojo.javascript.TitaniumPreparePackage
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class TitaniumPreparePackage
extends AbstractCompressMojo

This goal strips and compress the source scripts in order to create the distribution package.

Is defined by the goal name:
titanium-prepare-package
Is bound to the specified phase of the standard build lifecycle:
package

Field Summary
protected  java.lang.String executeMode
          The package execution mode.
protected  boolean forceCompress
          Force compression even if not in "none" executeMode.
protected  java.lang.String platform
          The platform for which the code should be compiled.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TitaniumPreparePackage()
           
 
Method Summary
protected  void copy()
           
 void execute()
          
 java.lang.String getExtension()
          
protected  java.io.File getOutputDirectory()
          
protected  java.lang.String getScriptsDir()
           
protected  java.io.File getSourceDirectory()
          
protected  java.io.File getStrippedDirectory()
          
protected  java.lang.String getStrippedDirName()
           
 
Methods inherited from class org.codehaus.mojo.javascript.AbstractCompressMojo
getDirectoryScanner, setLocalRepository
 
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
 

Field Detail

executeMode

protected java.lang.String executeMode

The package execution mode.

Allow the execution of the package on an emulator/device.

Values are:

none
Do not execute. (Default value)
virtual
Execute on an emulator whose settings are specified in AbstractTitaniumPackageMojo.virtualDevice.
device
Execute on a connected device.

Is defined by:
expression:
${executeMode}
default-value:
none

platform

protected java.lang.String platform
The platform for which the code should be compiled. android, iphone, ipad, universal

Is defined by:
expression:
${platform}
Is required.

forceCompress

protected boolean forceCompress
Force compression even if not in "none" executeMode.

Is defined by:
expression:
${forceCompress}
default-value:
false
Constructor Detail

TitaniumPreparePackage

public TitaniumPreparePackage()
Method Detail

getScriptsDir

protected java.lang.String getScriptsDir()

getStrippedDirName

protected java.lang.String getStrippedDirName()

getExtension

public java.lang.String getExtension()

Specified by:
getExtension in class AbstractCompressMojo
Returns:
the extension to append to compressed scripts.
See Also:
AbstractCompressMojo.getExtension()

getOutputDirectory

protected java.io.File getOutputDirectory()

Specified by:
getOutputDirectory in class AbstractCompressMojo
Returns:
the outputDirectory
See Also:
AbstractCompressMojo.getOutputDirectory()

getStrippedDirectory

protected java.io.File getStrippedDirectory()

Specified by:
getStrippedDirectory in class AbstractCompressMojo
Returns:
the outputDirectory
See Also:
AbstractCompressMojo.getOutputDirectory()

getSourceDirectory

protected java.io.File getSourceDirectory()

Specified by:
getSourceDirectory in class AbstractCompressMojo
Returns:
the sourceDirectory
See Also:
AbstractCompressMojo.getSourceDirectory()

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Description copied from class: AbstractCompressMojo

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractCompressMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
Mojo.execute()

copy

protected void copy()
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 SOFTEC sa. All Rights Reserved.