@Mojo(name="xcode-package-app",
defaultPhase=PACKAGE)
public class XcodePackageApplicationMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
boolean |
buildDevice
Property to determine whether or not to build for device.
|
boolean |
buildSimulator
Property to determine whether or not to build for the simulator.
|
String |
bundleId
The bundle id of your application.
|
boolean |
deploy
A flag to determine whether or not you want to deploy your .app to the simulator and run it.
|
String |
deployDevice
The simulator to deploy to, usually takes the form of something like "iPhone <#> (
|
String |
deviceAppPath
The path to your .app file created by the build mojo.
|
String |
ipaName
The name of the ipa file you want to create.
|
ProcessRunner |
processRunner |
String |
simulatorAppPath
The path to your .app file created by the build mojo.
|
String |
targetDirectory |
String |
xcrun
The path to your xcrun command.
|
| Constructor and Description |
|---|
XcodePackageApplicationMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
@Parameter(alias="xcrun",
property="xcode.project.xcrun.path",
defaultValue="/usr/bin/xcrun",
required=true)
public String xcrun
@Parameter(alias="deployApp",
property="xcode.project.deploy",
defaultValue="false",
required=false)
public boolean deploy
@Parameter(alias="iPhoneSimulatorName",
property="xcode.project.simulator.name",
defaultValue="iPhone 6 (8.1 Simulator)",
required=false)
public String deployDevice
@Parameter(alias="bundleId",
property="xcode.project.bundle.id",
required=true)
public String bundleId
@Parameter(alias="simulatorAppPath",
property="xcode.project.simulator.app.path",
defaultValue="${project.build.directory}/build/iPhone-simulator/${project.artifactId}.app",
required=true)
public String simulatorAppPath
@Parameter(alias="deviceAppPath",
property="xcode.project.device.app.path",
defaultValue="${project.build.directory}/build/iPhone/${project.artifactId}.app",
required=true)
public String deviceAppPath
@Parameter(alias="ipaName",
property="xcode.project.ipa.name",
defaultValue="${project.artifactId}.ipa",
required=false)
public String ipaName
@Parameter(property="project.build.directory",
readonly=true,
required=true)
public String targetDirectory
@Parameter(alias="buildSimulator",
property="xcode.project.build.simulator",
defaultValue="true",
required=false)
public boolean buildSimulator
@Parameter(alias="buildDevice",
property="xcode.project.build.device",
defaultValue="true",
required=false)
public boolean buildDevice
public ProcessRunner processRunner
Copyright © 2015. All rights reserved.