Cordova
Description
Task to process cordova, a platform for building hybrid mobile applications (see: cordova.apache.org/).
Installation
Please install:
$ npm install -g cordova
Cordova task parameters
Attribute | Description | Value | Required |
---|---|---|---|
dir | cordova project dir | yes | |
build | build target | ios|amazon-fireos|android|blackberry10|firefoxos | yes |
debug | build debug | true*|false | no (true by default) |
release | build release | true*|false | no (true by default) |
Element | Description | Value | Required |
pluginset | the pluginset element | no |
Examples
<project name="cordova task"> <taskdef name="cordova" classname="net.sourceforge.ant4x.taskdefs.javascript.CordovaTask" classpath="PATH/TO/ant4x.jar"/> <target name="cordova-build"> <cordova dir="path/to/project" build="android" /> </target> <target name="cordova-build-with-plugins"> <cordova dir="path/to/project" build="android"> <pluginset dir="path/to/project/plugins"> <include name="myplugin"/> </pluginset> </cordova> </target> </project>