- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for withRole (0.13 sec)
-
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslIntegrationTest.kt
withKotlinBuildSrc() withFile( "buildSrc/src/main/kotlin/build/DeepThought.kt", """ package build class DeepThought() { fun compute(handler: (Int) -> Unit) { handler(42) } } """ ) withFile( "buildSrc/src/main/kotlin/build/DeepThoughtPlugin.kt",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 02 18:26:28 UTC 2024 - 37.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/PrecompiledScriptPluginSyntheticIntegrationTest.kt
} } withDefaultSettingsIn("external-plugins") withKotlinDslPluginIn("external-plugins").appendText("""group = "test"""") withFile("external-plugins/src/main/kotlin/applied-output.gradle.kts", outputFrom("applied-output plugin")) withFile( "external-plugins/src/main/kotlin/applied-output-fails.gradle.kts", """ ${outputFrom("applied-output-fails plugin")}
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 07:16:19 UTC 2023 - 9.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/AbstractKotlinIntegrationTest.kt
fun withBuildScriptIn(baseDir: String, script: String, produceFile: (String) -> File = ::newFile): File = withFile("$baseDir/build.gradle.kts", script, produceFile) protected fun withFile(fileName: String, text: String = "", produceFile: (String) -> File = ::newFile) = writeFile(produceFile(fileName), text) private fun writeFile(file: File, text: String): File =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Mar 15 16:44:39 UTC 2024 - 9.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/BuildScriptCompileAvoidanceIntegrationTest.kt
System.out.println("foo"); } """ ) withFile("buildSrc/src/main/resources/foo.txt", "foo") withUniqueScript("$className().foo()") configureProject().assertBuildScriptCompiled().assertOutputContains("foo") withFile("buildSrc/src/main/resources/foo.txt", "bar")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Sep 24 17:45:42 UTC 2023 - 19.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginCrossVersionSmokeTest.kt
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach { kotlinOptions.freeCompilerArgs += "-Xskip-metadata-version-check" } """ ) withFile("buildSrc/src/main/kotlin/some.gradle.kts", """println("some!")""") withDefaultSettings() withBuildScript("""plugins { id("some") }""") expectConventionDeprecations()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jan 29 11:39:00 UTC 2024 - 11.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt
"Project" ) } private fun assertSucceedsForScriptWithReceiver(fileName: String, receiverType: String) { assertSucceeds( withFile(fileName, requiringImplicitReceiverOf(receiverType)) ) } private fun requiringImplicitReceiverOf(type: String) = """ val $type.implicitReceiver get() = this
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:12:50 UTC 2024 - 14.3K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt
// given: same init, settings & build files all applying same script val same = withFile("same.gradle.kts", """println("Same script on ${'$'}this")""") val sameApply = """apply(from = "same.gradle.kts")""" val initScriptFile = withFile("same.init.gradle.kts", sameApply) val initializationFile = cachedInitializationFile(initScriptFile, false, true)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 11:33:23 UTC 2024 - 13.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/ComponentMetadataSupplierRuleExecutorTest.groovy
if (ruleClass == TestSupplierWithService) { ruleServices['SomeService'] = someService } def reexecute = mustRefresh || expired when: withRule(ruleClass, ruleServices) execute(id) then: 1 * valueSnapshotter.snapshot(_) >> inputsSnapshot 1 * store.getIfPresent(keyHash) >> cachedEntry if (expired) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 10.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/ComponentMetadataRuleExecutorTest.groovy
def reexecute = mustRefresh || expired def moduleSources = new MutableModuleSources() moduleSources.add(new ModuleDescriptorHashModuleSource(hashValue, false)) when: withRule(ruleClass, ruleServices) execute(key) then: 1 * key.getSources() >> moduleSources 1 * key.getVariantDerivationStrategy() >> Stub(VariantDerivationStrategy)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 11K bytes - Viewed (0) -
src/text/template/parse/node.go
} // WithNode represents a {{with}} action and its commands. type WithNode struct { BranchNode } func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode { return &WithNode{BranchNode{tr: t, NodeType: NodeWith, Pos: pos, Line: line, Pipe: pipe, List: list, ElseList: elseList}} } func (w *WithNode) Copy() Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0)