- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for parseClass (0.19 sec)
-
subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy
def "handles invalid implementation classloader"() { given: buildScript """ def classLoader = new GroovyClassLoader(this.class.classLoader) def clazz = classLoader.parseClass(\"\"\"${customTaskImpl()}\"\"\") task customTask(type: clazz){ input1 = 'foo' input2 = 'bar' } """ when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 23.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy
def "can coerce enum value"() { def loader = new GroovyClassLoader(getClass().getClassLoader().parent) loader.addURL(ClasspathUtil.getClasspathForClass(GroovyObject).toURI().toURL()) def cl = loader.parseClass("package ${Type1.package.name}; enum Type1 { TWO, THREE } ") assert cl != Type1 assert cl.name == Type1.name expect: def isolated = isolatableFactory.isolate(Type1.TWO)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 17K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/BuildOperationNotificationsFixtureTest.groovy
} BuildOperationNotificationListener listener() { GroovyClassLoader groovyClassLoader = new GroovyClassLoader(BuildOperationNotificationsFixture.getClassLoader()) Class theParsedClass = groovyClassLoader.parseClass(BuildOperationNotificationsFixture.EVALUATION_LISTENER_SOURCE) return JavaReflectionUtil.newInstance(theParsedClass) as BuildOperationNotificationListener }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/DefaultModelSchemaStoreTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy
result[2].method == method1 result[2].arguments == [4, 5] as Object[] } def "uses provided ClassLoader to locate incoming method invocation"() { Class cl = classLoader.parseClass('package org.gradle.test; class TestObj { void doStuff() { } }') def method = cl.getMethod("doStuff") def invocation = new MethodInvocation(method, [] as Object[]) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/process/internal/AbstractWorkerProcessIntegrationSpec.groovy
File gradleUserHome() { return tmpDir.file("gradleUserHome") } Class<?> compileWithoutClasspath(String className, String classText) { return new GroovyClassLoader(getClass().classLoader).parseClass(classText, className) } Class<?> compileToDirectoryAndLoad(String className, String classText) { def classesDir = tmpDir.createDir("classes/$className")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 7.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy
include 'producer', 'consumer' """ buildFile << """ def classLoader = new GroovyClassLoader(this.class.classLoader) def MakeGreen = classLoader.parseClass(\"\"\"abstract class MakeGreen implements ${TransformAction.name}<${TransformParameters.name}.None> { @${InputArtifact.name} abstract ${Provider.name}<${FileSystemLocation.name}> getInputArtifact()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 10.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGeneratorTest.groovy
def "can read and write #value to managed property of type #primitiveType"() { def loader = new GroovyClassLoader(getClass().classLoader) when: def interfaceWithPrimitiveProperty = loader.parseClass """ @org.gradle.model.Managed interface PrimitiveProperty { $primitiveType.name getPrimitiveProperty() void setPrimitiveProperty($primitiveType.name value)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 27.6K bytes - Viewed (0) -
platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy
configuration.setBytecodePostprocessor { String name, byte[] original -> bytes = original } def gcl = new GroovyClassLoader(this.class.classLoader, configuration) gcl.parseClass(classBody) def jos = new JarOutputStream(jar.newOutputStream()) jos.putNextEntry(new JarEntry("Foo.class")) jos.write(bytes) jos.closeEntry() jos.close() jar
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 18 13:02:41 UTC 2024 - 14K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy
def "task loaded with custom classloader fails the build"() { file("input.txt").text = "data" buildFile << """ def CustomTask = new GroovyClassLoader(getClass().getClassLoader()).parseClass ''' import org.gradle.api.* import org.gradle.api.tasks.* class CustomTask extends DefaultTask { @InputFile File input
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 36.3K bytes - Viewed (0)