use of org.jetbrains.jps.incremental.artifacts.ArtifactBuildTarget in project android by JetBrains.
the class AndroidJpsUtil method getAndroidArtifactsToBuild.
@NotNull
public static List<JpsArtifact> getAndroidArtifactsToBuild(@NotNull CompileContext context) {
final List<JpsArtifact> artifacts = JpsArtifactService.getInstance().getArtifacts(context.getProjectDescriptor().getProject());
final List<JpsArtifact> result = new ArrayList<JpsArtifact>();
for (JpsArtifact artifact : artifacts) {
if (artifact.getArtifactType() instanceof AndroidApplicationArtifactType && context.getScope().isAffected(new ArtifactBuildTarget(artifact))) {
result.add(artifact);
}
}
return result;
}
Aggregations