javascript:titanium-compile

Full name:

org.codehaus.mojo.javascript:javascript-maven-plugin:1.1-softec:titanium-compile

Description:

Goal that will place in a titanium build directory the file needed to create a titanium package.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: compile.

Required Parameters

Name Type Since Description
platform String - The platform for which the code should be compiled. android, iphone, ipad, universal

Optional Parameters

Name Type Since Description
depsDirectory File - The folder where javascript dependencies are extracted and taken during assembling
Default value is: ${project.build.directory}/javascript-dependency.
descriptor File - Descriptor for the strategy to assemble individual scripts sources into destination.
Default value is: ${basedir}/src/assembler/${project.artifactId}.xml.
descriptorFormat String - Descriptor file format (default or jsbuilder)
excludes String[] - Exclusion pattern.
includes String[] - Inclusion pattern.
libsDirectory String - The folder for javascripts dependencies
Default value is: lib.
outputDirectory File - The output directory of the assembled js file.
Default value is: ${project.build.outputDirectory}.
scriptsDir String - The name of the script directory.

This parameter is optional it defaults to platform-scripts


sourceDirectory File - Location of the source files.
Default value is: ${basedir}/src/main/javascript.
tiapp Tiapp - The Titanium tiapp.xml configuration. If not specified a default tiapp.xml file will be generated
useArtifactId boolean - For dependencies, if true, create a folder named by the artifactId while unpacking

Parameter Details

depsDirectory:

The folder where javascript dependencies are extracted and taken during assembling
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.directory}/javascript-dependency

descriptor:

Descriptor for the strategy to assemble individual scripts sources into destination.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/assembler/${project.artifactId}.xml

descriptorFormat:

Descriptor file format (default or jsbuilder)
  • Type: java.lang.String
  • Required: No

excludes:

Exclusion pattern.
  • Type: java.lang.String[]
  • Required: No

includes:

Inclusion pattern.
  • Type: java.lang.String[]
  • Required: No

libsDirectory:

The folder for javascripts dependencies
  • Type: java.lang.String
  • Required: No
  • Expression: ${scripts}
  • Default: lib

outputDirectory:

The output directory of the assembled js file.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}

platform:

The platform for which the code should be compiled. android, iphone, ipad, universal
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${platform}

scriptsDir:

The name of the script directory.

This parameter is optional it defaults to platform-scripts

  • Type: java.lang.String
  • Required: No

sourceDirectory:

Location of the source files.
  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/javascript

tiapp:

The Titanium tiapp.xml configuration. If not specified a default tiapp.xml file will be generated
  • Type: org.codehaus.mojo.javascript.Tiapp
  • Required: No

useArtifactId:

For dependencies, if true, create a folder named by the artifactId while unpacking
  • Type: boolean
  • Required: No