Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 38 for Closure (0.47 seconds)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/BuildableDOMCategory.groovy

        }
    
        public static void setChildren(Node element, Closure cl) {
            while (element.hasChildNodes()) {
                element.removeChild(element.getFirstChild())
            }
            leftShift(element, cl)
        }
    
        public static def leftShift(Node parent, Closure cl) {
            DomBuilder builder = new DomBuilder(parent)
            cl.delegate = builder
            cl.call()
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Aug 11 15:32:19 GMT 2022
    - 2.8K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/SnippetsTask.groovy

        /**
         * Repeatedly match the pattern to the string, calling the closure with the
         * matchers each time there is a match. If there are characters that don't
         * match then blow up. If the closure takes two parameters then the second
         * one is "is this the last match?".
         */
        protected parse(String location, String s, String pattern, Closure c) {
            if (s == null) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 20 10:08:26 GMT 2021
    - 17.8K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ForbiddenApisPrecommitPlugin.java

     */
    
    package org.elasticsearch.gradle.internal.precommit;
    
    import de.thetaphi.forbiddenapis.gradle.CheckForbiddenApis;
    import de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin;
    import groovy.lang.Closure;
    import org.elasticsearch.gradle.internal.ExportElasticsearchBuildResourcesTask;
    import org.elasticsearch.gradle.internal.info.BuildParams;
    import org.elasticsearch.gradle.internal.InternalPlugin;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.8K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/AntTask.groovy

                if (buffer.isEmpty() == false) {
                    logger.error("=== Ant output ===\n${buffer}")
                }
                throw e
            }
        }
    
        /** Runs the doAnt closure. This can be overridden by subclasses instead of having to set a closure. */
        protected abstract void runAnt(AntBuilder ant)
    
        /** Create the logger the ant runner will use, with the given stream for error/output. */
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/html/HtmlEscapers.java

     * systems and high-level APIs that provide autoescaping.
     * One Google-authored templating system available for external use is <a
     * href="https://developers.google.com/closure/templates/">Closure Templates</a>.
     *
     * <p>HTML escaping is particularly tricky: For example, <a
     * href="https://www.w3.org/TR/html4/types.html#h-6.2">some elements' text contents must not be HTML
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java

                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes this SAM alias handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
        public void close() throws IOException {
            final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/test/AntFixture.groovy

         */
        protected boolean spawn = true
    
        /**
         * A closure to call before the fixture is considered ready. The closure is passed the fixture object,
         * as well as a groovy AntBuilder, to enable running ant condition checks. The default wait
         * condition is for http on the http port.
         */
        @Internal
        Closure waitCondition = { AntFixture fixture, AntBuilder ant ->
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.1K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/groovy/elasticsearch.forbidden-dependencies.gradle

     */
    
    // we do not want any of these dependencies on the compilation classpath
    // because they could then be used within Elasticsearch
    List<String> FORBIDDEN_DEPENDENCIES = [
      'guava'
    ]
    
    Closure checkDeps = { Configuration configuration ->
      configuration.resolutionStrategy.eachDependency {
        String artifactName = it.target.name
        if (FORBIDDEN_DEPENDENCIES.contains(artifactName)) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/Graphs.java

        // edges, so this traversal would require reusing the undirected AB edge.
        return false;
      }
    
      /**
       * Returns the transitive closure of {@code graph}. The transitive closure of a graph {@code G} is
       * a graph {@code T} that is a supergraph of {@code G}, augmented by, for each pair of nodes A and
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalPluginBuildPlugin.java

     * in compliance with, at your election, the Elastic License 2.0 or the Server
     * Side Public License, v 1.
     */
    
    package org.elasticsearch.gradle.internal;
    
    import groovy.lang.Closure;
    import org.elasticsearch.gradle.internal.precommit.TestingConventionsTasks;
    import org.elasticsearch.gradle.internal.test.RestTestBasePlugin;
    import org.elasticsearch.gradle.internal.conventions.util.Util;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5K bytes
    - Click Count (0)
Back to Top