@Mojo(name="xcode-build",
defaultPhase=COMPILE)
public class XcodeBuildMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
String |
artifactName
The name of the artifact.
|
Map<String,String> |
buildSettings
A map of build settings to add.
|
List<String> |
deviceArchs
The list of device architectures to build.
|
ProcessRunner |
processRunner |
org.apache.maven.project.MavenProject |
project |
List<String> |
simulatorArchs
The list of simulator architectures to build.
|
String |
targetDirectory |
Map<String,String> |
userDefaults
A map of user defaults to add.
|
boolean |
xcodeAllTargets
Build all the targets in the specified project.
|
String |
xcodebuild
The location of the xcodebuild executable.
|
String |
xcodeConfigurationName
Use the specified build configuration when building each target.
|
String |
xcodeDerivedDataPath
Overrides the folder that should be used for derived data when performing a build action on a scheme in a workspace.
|
Integer |
xcodeDestinationTimeout
Use the specified timeout when searching for a destination device.
|
String |
xcodeProject
The path to your xcodeproj file.
|
String |
xcodeResultBundlePath
Writes a bundle to the specified path with results from performing a build action on a scheme in a workspace.
|
String |
xcodeScheme
The name of the scheme to build.
|
boolean |
xcodeSkipUnavailableActions
Skip build actions that cannot be performed instead of failing.
|
String |
xcodeTarget
Builds the specified target.
|
String |
xcodeWorkspace
Build the specified workspace.
|
String |
xcodeXcconfig
Load the build settings defined in the specified file when building all targets.
|
| Constructor and Description |
|---|
XcodeBuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkReturnValue(int returnValue) |
protected List<String> |
createCommonBuildCommands() |
void |
execute() |
@Parameter(property="project",
readonly=true,
required=true)
public org.apache.maven.project.MavenProject project
@Parameter(alias="xcodebuildPath",
property="xcodebuild.path",
defaultValue="/usr/bin/xcodebuild",
required=true)
public String xcodebuild
@Parameter(alias="project",
property="xcode.project.path",
defaultValue="${basedir}/${project.artifactId}.xcodeproj",
required=true)
public String xcodeProject
@Parameter(alias="target",
property="xcode.project.target",
required=false)
public String xcodeTarget
@Parameter(alias="allTargets",
property="xcode.project.all.targets",
required=false)
public boolean xcodeAllTargets
@Parameter(alias="workspace",
property="xcode.project.workspace",
required=false)
public String xcodeWorkspace
@Parameter(alias="scheme",
property="xcode.project.scheme",
defaultValue="${project.artifactId}",
required=true)
public String xcodeScheme
@Parameter(alias="destinationTimeout",
property="xcode.project.destination.timeout",
required=false)
public Integer xcodeDestinationTimeout
@Parameter(alias="configuration",
property="xcode.project.configuration.name",
required=false)
public String xcodeConfigurationName
@Parameter(alias="derivedDataPath",
property="xcode.project.derived.data.path",
required=false)
public String xcodeDerivedDataPath
@Parameter(alias="resultBundlePath",
property="xcode.project.result.bundle.path",
required=false)
public String xcodeResultBundlePath
@Parameter(alias="xcconfig",
property="xcode.project.xcconfig.file.name",
required=false)
public String xcodeXcconfig
@Parameter(alias="skipUnavailableActions",
property="xcode.project.skip.unavailable.actions",
defaultValue="false",
required=false)
public boolean xcodeSkipUnavailableActions
@Parameter(property="project.build.directory",
readonly=true,
required=true)
public String targetDirectory
@Parameter(alias="xcodeProjectArtifactName",
property="xcode.artifact.name",
defaultValue="${project.artifactId}",
required=true)
public String artifactName
@Parameter public List<String> simulatorArchs
public ProcessRunner processRunner
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void checkReturnValue(int returnValue)
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionCopyright © 2015. All rights reserved.