Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for indexFor (0.17 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInitScriptsIntegrationTest.groovy

            then:
            output.indexOf('initscript1!') < output.indexOf('initscript2!')
            configurationCache.assertStateStored()
    
            when:
            configurationCacheRun 'build', '-I', initScript2.absolutePath, '-I', initScript1.absolutePath
    
            then:
            output.indexOf('initscript2!') < output.indexOf('initscript1!')
            configurationCache.assertStateStored()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    type indexValidator func(int) bool
    
    func newCacheInterval(startIndex, endIndex int, indexer indexerFunc, indexValidator indexValidator, locker sync.Locker) *watchCacheInterval {
    	return &watchCacheInterval{
    		startIndex:     startIndex,
    		endIndex:       endIndex,
    		indexer:        indexer,
    		indexValidator: indexValidator,
    		buffer:         &watchCacheIntervalBuffer{buffer: make([]*watchCacheEvent, bufferSize)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

            executer.gradleUserHomeDir.file('init.d/c.gradle') << 'println "init #c#"'
    
            when:
            run()
    
            then:
            def a = output.indexOf('init #a#')
            def b = output.indexOf('init #b#')
            def c = output.indexOf('init #c#')
            a < b
            b < c
        }
    
        def "executes init script with correct environment"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. tools/istio-iptables/pkg/builder/iptables_builder_impl.go

    }
    
    func indexOf(element string, data []string) int {
    	for k, v := range data {
    		if element == v {
    			return k
    		}
    	}
    	return -1 // not found.
    }
    
    func (rb *IptablesRuleBuilder) appendInternal(ipt *[]*Rule, command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder {
    	idx := indexOf("-j", params)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java

            List<String> lifecycleIds = Arrays.asList(STANDARD_LIFECYCLES);
    
            Comparator<String> comparator = (l, r) -> {
                int lx = lifecycleIds.indexOf(l);
                int rx = lifecycleIds.indexOf(r);
    
                if (lx < 0 || rx < 0) {
                    return rx - lx;
                } else {
                    return lx - rx;
                }
            };
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/HtmlReportTemplate.kt

        /**
         * Returns the header and footer of the html template as a pair.
         */
        fun load(): Pair<String, String> {
            val template = readHtmlTemplate()
            val headerEnd = template.indexOf(modelLine)
            require(headerEnd > 0) {
                "Invalid configuration cache report template!"
            }
            val header = template.substring(0, headerEnd)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirTypeParameterSymbolBase.kt

            KaFirTypeParameterSymbolPointer(
                ownerPointer = analysisSession.createOwnerPointer(this),
                name = name,
                index = typeParameters.indexOf(firSymbol),
            )
        }
    
        override fun equals(other: Any?): Boolean = symbolEquals(other)
        override fun hashCode(): Int = symbolHashCode()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/SystemClassLoaderTest.groovy

            def lines = output.readLines()
            if (lines.find { it == noInfoHeading }) { return }
    
            lines.find { it == heading } // here for nicer output if the output isn't what we expect
            def headingIndex = lines.indexOf(heading)
            def classpathSize = Integer.parseInt(lines[headingIndex + 1])
            // The gradle-launcher.jar is mandatory.
            // The gradle-instrumentation-agent.jar may not be available if the build runs in no-daemon mode.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirValueParameterSymbol.kt

            return KaFirValueParameterSymbolPointer(
                ownerPointer = analysisSession.createOwnerPointer(this),
                name = name,
                index = (ownerSymbol.firSymbol.fir as FirFunction).valueParameters.indexOf(firSymbol.fir),
            )
        }
    
        override fun equals(other: Any?): Boolean = symbolEquals(other)
        override fun hashCode(): Int = symbolHashCode()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmLanguageUtilities.java

                    return compileTask.getOptions().getRelease().get();
                }
    
                List<String> compilerArgs = compileTask.getOptions().getCompilerArgs();
                int flagIndex = compilerArgs.indexOf("--release");
    
                if (flagIndex != -1 && flagIndex + 1 < compilerArgs.size()) {
                    return Integer.parseInt(String.valueOf(compilerArgs.get(flagIndex + 1)));
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:47:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top