- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for CachingScriptSource (0.21 sec)
-
subprojects/core/src/main/java/org/gradle/groovy/scripts/CachingScriptSource.java
public class CachingScriptSource extends DelegatingScriptSource { private final TextResource resource; public static ScriptSource of(ScriptSource source) { if (source.getResource().isContentCached()) { return source; } return new CachingScriptSource(source); } private CachingScriptSource(ScriptSource source) { super(source);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 1.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/groovy/scripts/CachingScriptSourceTest.groovy
def resource = Stub(TextResource) scriptSource.resource >> resource resource.contentCached >> false expect: def wrapper = CachingScriptSource.of(scriptSource) wrapper instanceof CachingScriptSource wrapper.source == scriptSource } def "does not create wrapper for script source when content is cheap to query"() { def scriptSource = Stub(ScriptSource)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 16 20:50:41 UTC 2016 - 1.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/groovy/scripts/DefaultScriptCompilerFactoryTest.groovy
then: result == runner 1 * scriptClassCompiler.compile({ it instanceof CachingScriptSource}, Script, target, targetScope, operation, verifier) >> compiledScript 1 * scriptRunnerFactory.create(compiledScript, { it instanceof CachingScriptSource}, classLoader) >> runner 0 * scriptRunnerFactory._ 0 * scriptClassCompiler._ } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Dec 09 15:05:17 UTC 2023 - 2.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/groovy/scripts/DefaultScriptCompilerFactory.java
} private class ScriptCompilerImpl implements ScriptCompiler { private final ScriptSource source; public ScriptCompilerImpl(ScriptSource source) { this.source = CachingScriptSource.of(source); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Dec 09 15:05:17 UTC 2023 - 2.3K bytes - Viewed (0)