Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for flattensCollections (0.28 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultObjectConfigurationActionTest.groovy

            then:
            action.from('script')
            action.to(target1)
            action.to(target2)
            action.execute()
        }
    
        void flattensCollections() {
            when:
            Object target1 = new Object()
            Object target2 = new Object()
            1 * resolver.resolveUri('script') >> file
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            expect:
            flattenCollections([1, 2, 3] as Set) == [1, 2, 3]
            flattenCollections("asdfa") == ["asdfa"]
            flattenCollections(null) == [null]
            flattenCollections([null, [null, null]]) == [null, null, null]
            flattenCollections(integers) == integers
            flattenCollections([1, 2, 3] as Set) == [1, 2, 3]
            flattenCollections([] as Set) == []
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/CollectionUtils.java

         *
         * @param things The things to flatten
         * @return A flattened list of the given things
         */
        public static List<?> flattenCollections(Object... things) {
            return flattenCollections(Object.class, things);
        }
    
        /**
         * Recursively unpacks all the given things into a flat list, ensuring they are of a certain type.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/util/CollectionUtils.java

         *
         * @param things The things to flatten
         * @return A flattened list of the given things
         */
        public static List<?> flattenCollections(Object... things) {
            return flattenCollections(Object.class, things);
        }
    
        /**
         * Recursively unpacks all the given things into a flat list, ensuring they are of a certain type.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 26K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DynamicAddDependencyMethods.java

            if (configuration == null) {
                return DynamicInvokeResult.notFound();
            }
    
            List<?> normalizedArgs = CollectionUtils.flattenCollections(arguments);
            if (normalizedArgs.size() == 2 && normalizedArgs.get(1) instanceof Closure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dsl/DefaultRepositoryHandler.java

    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    import static org.gradle.util.internal.CollectionUtils.flattenCollections;
    
    public class DefaultRepositoryHandler extends DefaultArtifactRepositoryContainer implements RepositoryHandlerInternal {
    
        public static final String GRADLE_PLUGIN_PORTAL_REPO_NAME = "Gradle Central Plugin Repository";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 15:16:47 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/base-services-groovy/src/test/groovy/org/gradle/api/specs/AbstractCompositeSpecTest.java

                }
            };
        }
    
        @Test
        public void init() {
            org.gradle.api.specs.CompositeSpec<Object> compositeSpec = createCompositeSpec(spec1, spec2);
            Assert.assertEquals(CollectionUtils.flattenCollections(spec1, spec2), compositeSpec.getSpecs());
        }
    
        protected Spec<Object>[] createAtomicElements(boolean... satisfies) {
            List<Spec<Object>> result = new ArrayList<Spec<Object>>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. platforms/software/reporting/src/main/java/org/gradle/api/reporting/GenerateBuildDashboard.java

                allAggregatedReports, reporting -> reporting.getReports().getEnabled()
            );
            return new LinkedHashSet<Report>(CollectionUtils.flattenCollections(Report.class, enabledReportSets));
        }
    
        private Set<Reporting<? extends ReportContainer<?>>> getAggregatedTasks() {
            final Set<Reporting<? extends ReportContainer<?>>> reports = new HashSet<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:30:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/internal/SourceFoldersCreator.java

            if(includesByType.stream().anyMatch(Set::isEmpty)) {
                return emptyList();
            }
    
            List<String> allIncludes = CollectionUtils.flattenCollections(String.class, includesByType);
            return ImmutableSet.copyOf(allIncludes).asList();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 13:57:30 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java

         */
        private ImmutableList<URL> withImplementation(List<URL> additionalImplementationClasspath) {
            return ImmutableList.copyOf(CollectionUtils.flattenCollections(URL.class,
                moduleRegistry.getModule("gradle-worker-main").getImplementationClasspath().getAsURLs(),
                moduleRegistry.getModule("gradle-logging").getImplementationClasspath().getAsURLs(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top