Package com.uber.okbuck.core.model.base
Class Target
- java.lang.Object
-
- com.uber.okbuck.core.model.base.Target
-
- Direct Known Subclasses:
JvmTarget
public abstract class Target extends java.lang.ObjectA target is roughly equivalent to what can be built with gradle via the various assemble tasks.For a project with no flavors and three build types - debug, release and development, the possible variants are debug, release and development. For a project with flavors flavor1 and flavor2 and three build types - debug, release and development, the possible variants are flavor1Debug, flavor1Release, flavor1Development, flavor2Debug, flavor2Release, flavor2Development.
This class encapsulates all the data related to a variant to generate config files.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTarget(org.gradle.api.Project project, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.String>getAvailable(java.util.Collection<java.io.File> files)java.util.Collection<java.lang.String>getExtraOpts(RuleType ruleType)java.lang.StringgetIdentifier()java.lang.StringgetName()OkBuckExtensiongetOkbuck()java.lang.StringgetPath()org.gradle.api.ProjectgetProject()protected <T> TgetProp(java.util.Map<java.lang.String,T> map, T defaultValue)org.gradle.api.ProjectgetRootProject()
-
-
-
Method Detail
-
getProject
public org.gradle.api.Project getProject()
-
getRootProject
public org.gradle.api.Project getRootProject()
-
getName
public java.lang.String getName()
-
getIdentifier
public java.lang.String getIdentifier()
-
getPath
public java.lang.String getPath()
-
getOkbuck
public OkBuckExtension getOkbuck()
-
getAvailable
protected java.util.Set<java.lang.String> getAvailable(java.util.Collection<java.io.File> files)
-
getProp
protected <T> T getProp(java.util.Map<java.lang.String,T> map, T defaultValue)
-
getExtraOpts
public java.util.Collection<java.lang.String> getExtraOpts(RuleType ruleType)
-
-