public interface XcodeIdeTarget extends Named
A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. A target defines a single product; it organizes the inputs into the build system—the source files and instructions for processing those source files—required to build that product. Projects can contain one or more targets, each of which produces one product.
—Xcode Targets Concept
Named.Namer
Modifier and Type | Method and Description |
---|---|
void |
buildConfigurations(Action<? super NamedDomainObjectContainer<XcodeIdeBuildConfiguration>> action)
Configures the build configuration container with the specified action.
|
NamedDomainObjectContainer<XcodeIdeBuildConfiguration> |
getBuildConfigurations()
Returns the build configurations this target can build.
|
XcodeIdeTarget |
getIdeTarget()
Returns this Xcode target instance.
|
Property<String> |
getProductName()
Returns the product name this target is building.
|
Property<String> |
getProductReference()
Returns the reference filename of the product.
|
Property<XcodeIdeProductType> |
getProductType()
Returns the product type this target is building.
|
ConfigurableFileCollection |
getSources()
Returns the sources this target will build.
|
Property<String> getProductName()
Property<XcodeIdeProductType> getProductType()
XcodeIdeProductType
are available via XcodeIdeProductTypes
constants or via the XcodeIdeProjectExtension.getProductTypes()
factory.XcodeIdeProductType
,
XcodeIdeProductTypes
Property<String> getProductReference()
NamedDomainObjectContainer<XcodeIdeBuildConfiguration> getBuildConfigurations()
XcodeIdeBuildConfiguration
to configure the build configuration for this target, never null.void buildConfigurations(Action<? super NamedDomainObjectContainer<XcodeIdeBuildConfiguration>> action)
action
- a configuration action for the container of XcodeIdeBuildConfiguration
instances.NullPointerException
- if the action is nullConfigurableFileCollection getSources()
XcodeIdeTarget getIdeTarget()
XcodeIdeTarget
instance, never null.