Java Code Examples for org.gradle.util.CollectionUtils#addAll()

The following examples show how to use org.gradle.util.CollectionUtils#addAll() . 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: AbstractHeaderExportingDependentSourceSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void lib(Object library) {
    if (library instanceof Iterable<?>) {
        Iterable<?> iterable = (Iterable) library;
        CollectionUtils.addAll(libs, iterable);
    } else {
        libs.add(library);
    }
}
 
Example 2
Source File: SingleSourceCompileArgTransformer.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public List<String> transform(T spec) {
    List<String> args = new ArrayList<String>();
    File outputFilePath = getOutputFileDir(sourceFile, spec.getObjectFileDir());

    args.addAll(delegate.transform(spec));
    args.add(sourceFile.getAbsolutePath());

    CollectionUtils.addAll(args, outputFileArgTransformer.transform(outputFilePath));
    return args;
}
 
Example 3
Source File: AbstractHeaderExportingDependentSourceSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void lib(Object library) {
    if (library instanceof Iterable<?>) {
        Iterable<?> iterable = (Iterable) library;
        CollectionUtils.addAll(libs, iterable);
    } else {
        libs.add(library);
    }
}
 
Example 4
Source File: DefaultArtifactResolutionQuery.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(Iterable<? extends ComponentIdentifier> componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 5
Source File: ActionBroadcast.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ActionBroadcast(Iterable<Action<? super T>> actions) {
    CollectionUtils.addAll(this.actions, actions);
}
 
Example 6
Source File: DefaultArtifactResolutionQuery.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(Iterable<? extends ComponentIdentifier> componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 7
Source File: DefaultArtifactResolutionQuery.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(Iterable<? extends ComponentIdentifier> componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 8
Source File: DefaultClassPath.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultClassPath(File... files) {
    Set<File> noDuplicates = new LinkedHashSet<File>();
    CollectionUtils.addAll(noDuplicates, files);
    this.files = new ArrayList<File>(noDuplicates);
}
 
Example 9
Source File: DefaultArtifactResolutionQuery.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(ComponentIdentifier... componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 10
Source File: PatternSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) {
    CollectionUtils.addAll(this.excludeSpecs, excludes);
    return this;
}
 
Example 11
Source File: ActionBroadcast.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ActionBroadcast(Iterable<Action<? super T>> actions) {
    CollectionUtils.addAll(this.actions, actions);
}
 
Example 12
Source File: PatternSet.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) {
    CollectionUtils.addAll(this.excludeSpecs, excludes);
    return this;
}
 
Example 13
Source File: DefaultClassPath.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultClassPath(Iterable<File> files) {
    Set<File> noDuplicates = new LinkedHashSet<File>();
    CollectionUtils.addAll(noDuplicates, files);
    this.files = new ArrayList<File>(noDuplicates);
}
 
Example 14
Source File: PatternSet.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public PatternSet excludeSpecs(Iterable<Spec<FileTreeElement>> excludes) {
    CollectionUtils.addAll(this.excludeSpecs, excludes);
    return this;
}
 
Example 15
Source File: ActionBroadcast.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ActionBroadcast(Iterable<Action<? super T>> actions) {
    CollectionUtils.addAll(this.actions, actions);
}
 
Example 16
Source File: ActionBroadcast.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ActionBroadcast(Iterable<Action<? super T>> actions) {
    CollectionUtils.addAll(this.actions, actions);
}
 
Example 17
Source File: ExternalResourceResolver.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
protected void setIvyPatterns(Iterable<? extends ResourcePattern> patterns) {
    ivyPatterns.clear();
    CollectionUtils.addAll(ivyPatterns, patterns);
}
 
Example 18
Source File: DefaultArtifactResolutionQuery.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(ComponentIdentifier... componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 19
Source File: DefaultArtifactResolutionQuery.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public ArtifactResolutionQuery forComponents(Iterable<? extends ComponentIdentifier> componentIds) {
    CollectionUtils.addAll(this.componentIds, componentIds);
    return this;
}
 
Example 20
Source File: DefaultClassPath.java    From pushfish-android with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public DefaultClassPath(File... files) {
    Set<File> noDuplicates = new LinkedHashSet<File>();
    CollectionUtils.addAll(noDuplicates, files);
    this.files = new ArrayList<File>(noDuplicates);
}