org.gradle.tooling.model.DomainObjectSet Java Examples

The following examples show how to use org.gradle.tooling.model.DomainObjectSet. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CollectionMapper.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
Collection<Object> createEmptyCollection(Class<?> collectionType) {
    if (collectionType.equals(DomainObjectSet.class)) {
        return new ArrayList<Object>();
    }
    if (collectionType.isAssignableFrom(ArrayList.class)) {
        return new ArrayList<Object>();
    }
    if (collectionType.isAssignableFrom(LinkedHashSet.class)) {
        return new LinkedHashSet<Object>();
    }
    if (collectionType.isAssignableFrom(TreeSet.class)) {
        return new TreeSet<Object>();
    }
    throw new UnsupportedOperationException(String.format("Cannot convert a Collection to type %s.", collectionType.getName()));
}
 
Example #2
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectOutcomes(String name, String projectPath, String description, File projectDirectory,
                              DomainObjectSet<? extends GradleBuildOutcome> outcomes, ProjectOutcomes parent) {
    this.name = name;
    this.projectPath = projectPath;
    this.description = description;
    this.projectDirectory = projectDirectory;
    this.outcomes = outcomes;
    this.parent = parent;
}
 
Example #3
Source File: DefaultProjectOutcomes.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectOutcomes(String name, String projectPath, String description, File projectDirectory,
                              DomainObjectSet<? extends GradleBuildOutcome> outcomes, ProjectOutcomes parent) {
    this.name = name;
    this.projectPath = projectPath;
    this.description = description;
    this.projectDirectory = projectDirectory;
    this.outcomes = outcomes;
    this.parent = parent;
}
 
Example #4
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public DefaultProjectOutcomes(String name, String projectPath, String description, File projectDirectory,
                              DomainObjectSet<? extends GradleBuildOutcome> outcomes, ProjectOutcomes parent) {
    this.name = name;
    this.projectPath = projectPath;
    this.description = description;
    this.projectDirectory = projectDirectory;
    this.outcomes = outcomes;
    this.parent = parent;
}
 
Example #5
Source File: DefaultProjectOutcomes.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<ProjectOutcomes> getChildren() {
    return new ImmutableDomainObjectSet<ProjectOutcomes>(children);
}
 
Example #6
Source File: DefaultProjectOutcomes.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<? extends GradleBuildOutcome> getOutcomes() {
    return outcomes;
}
 
Example #7
Source File: DefaultIdeaContentRoot.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getGeneratedSourceDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(generatedSourceDirectories);
}
 
Example #8
Source File: BuildInvocations.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Incubating
DomainObjectSet<? extends Task> getTasks();
 
Example #9
Source File: BuildInvocations.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Incubating
DomainObjectSet<? extends Task> getTasks();
 
Example #10
Source File: BuildInvocations.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Incubating
DomainObjectSet<? extends Task> getTasks();
 
Example #11
Source File: ProjectOutcomesModelBuilder.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private DomainObjectSet<GradleFileBuildOutcome> getFileOutcomes(Project project) {
    List<GradleFileBuildOutcome> fileBuildOutcomes = Lists.newArrayList();
    addArtifacts(project, fileBuildOutcomes);
    return new ImmutableDomainObjectSet<GradleFileBuildOutcome>(fileBuildOutcomes);
}
 
Example #12
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<? extends GradleBuildOutcome> getOutcomes() {
    return outcomes;
}
 
Example #13
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<ProjectOutcomes> getChildren() {
    return new ImmutableDomainObjectSet<ProjectOutcomes>(children);
}
 
Example #14
Source File: DefaultIdeaContentRoot.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getSourceDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(sourceDirectories);
}
 
Example #15
Source File: DefaultIdeaContentRoot.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getGeneratedSourceDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(generatedSourceDirectories);
}
 
Example #16
Source File: DefaultIdeaContentRoot.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getSourceDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(sourceDirectories);
}
 
Example #17
Source File: ProjectOutcomesModelBuilder.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
private DomainObjectSet<GradleFileBuildOutcome> getFileOutcomes(Project project) {
    List<GradleFileBuildOutcome> fileBuildOutcomes = Lists.newArrayList();
    addArtifacts(project, fileBuildOutcomes);
    return new ImmutableDomainObjectSet<GradleFileBuildOutcome>(fileBuildOutcomes);
}
 
Example #18
Source File: DefaultIdeaContentRoot.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getTestDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(testDirectories);
}
 
Example #19
Source File: DefaultIdeaContentRoot.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<? extends IdeaSourceDirectory> getGeneratedTestDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(generatedTestDirectories);
}
 
Example #20
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<ProjectOutcomes> getChildren() {
    return new ImmutableDomainObjectSet<ProjectOutcomes>(children);
}
 
Example #21
Source File: DefaultProjectOutcomes.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<? extends GradleBuildOutcome> getOutcomes() {
    return outcomes;
}
 
Example #22
Source File: BuildInvocations.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Incubating
DomainObjectSet<? extends TaskSelector> getTaskSelectors();
 
Example #23
Source File: BuildInvocations.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Incubating
DomainObjectSet<? extends Task> getTasks();
 
Example #24
Source File: DefaultIdeaContentRoot.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getSourceDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(sourceDirectories);
}
 
Example #25
Source File: DefaultIdeaContentRoot.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DomainObjectSet<IdeaSourceDirectory> getTestDirectories() {
    return new ImmutableDomainObjectSet<IdeaSourceDirectory>(testDirectories);
}
 
Example #26
Source File: IdeaProject.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Returns the modules of this IDEA project. Most projects have at least one module.
 * Alias for {@link #getChildren()}.
 *
 * @return The modules of this IDEA project.
 * @since 1.0-milestone-5
 */
DomainObjectSet<? extends IdeaModule> getModules();
 
Example #27
Source File: HierarchicalEclipseProject.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Returns the project dependencies for this project.
 *
 * @return The project dependencies. Returns an empty set if the project has no project dependencies.
 * @since 1.0-milestone-3
 */
DomainObjectSet<? extends EclipseProjectDependency> getProjectDependencies();
 
Example #28
Source File: IdeaModule.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * All content roots. Most idea modules have a single content root.
 *
 * @return content roots
 * @since 1.0-milestone-5
 */
DomainObjectSet<? extends IdeaContentRoot> getContentRoots();
 
Example #29
Source File: IdeaProject.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * Returns the modules of this IDEA project. Most projects have at least one module.
 * Alias for {@link #getModules()}.
 *
 * @return The modules of this IDEA project.
 * @since 1.0-milestone-5
 */
DomainObjectSet<? extends IdeaModule> getChildren();
 
Example #30
Source File: IdeaModule.java    From pushfish-android with BSD 2-Clause "Simplified" License 2 votes vote down vote up
/**
 * All content roots. Most idea modules have a single content root.
 *
 * @return content roots
 * @since 1.0-milestone-5
 */
DomainObjectSet<? extends IdeaContentRoot> getContentRoots();