Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for classpathFor (0.25 sec)

  1. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/serialization/ClasspathInfererTest.groovy

            def cl = urlClassLoader(toolingApiClassPath + isolatedClasses(CustomAction, CustomModel))
            def actionClass = cl.loadClass(CustomAction.name)
    
            expect:
            def classpath = classpathFor(actionClass)
            def loader = new VisitableURLClassLoader("test", ClassLoader.systemClassLoader.parent, classpath)
            def action = JavaReflectionUtil.newInstance(loader.loadClass(CustomAction.name))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r54/AccessorsClassPathModelCrossVersionSpec.groovy

                plugins { java }
            """)
    
            and:
            withFile("gradle.properties", "org.gradle.kotlin.dsl.accessors=off")
    
            expect:
            assertThat(
                classPathFor(projectDir, buildFile),
                not(hasAccessorsClasses())
            )
        }
    
        def "the set of jit accessors is a function of the set of applied plugins"() {
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r88/KotlinSettingsScriptModelCrossVersionSpec.groovy

            def accessorsClassPath = accessorsClassPathFor(settingsFileKts)
    
            then:
            !accessorsClassPath.isEmpty()
        }
    
        private List<File> accessorsClassPathFor(File buildFile) {
            return classPathFor(projectDir, buildFile)
                .tap { println(it) }
                .findAll { isAccessorsDir(it) }
        }
    
        private static boolean isAccessorsDir(File dir) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 13:31:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/AbstractKotlinScriptModelCrossVersionTest.groovy

        }
    
        protected List<File> canonicalClassPathFor(File projectDir, File scriptFile = null) {
            return canonicalClasspathOf(kotlinBuildScriptModelFor(projectDir, scriptFile))
        }
    
        protected List<File> classPathFor(File projectDir, File scriptFile = null) {
            return kotlinBuildScriptModelFor(projectDir, scriptFile).classPath
        }
    
        protected List<File> sourcePathFor(File scriptFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/TestWithClassPath.kt

        protected
        fun jarClassPathWith(path: String, vararg classes: KClass<*>): ClassPath = classPathOf(
            file(path).also { jar ->
                zipTo(jar, classEntriesFor(classes))
            }
        )
    
        protected
        fun classPathWith(vararg classes: KClass<*>): ClassPath = classPathOf(
            newFolder().also { rootDir ->
                for ((path, bytes) in classEntriesFor(classes)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. platforms/core-execution/worker-main/src/main/java/org/gradle/process/internal/worker/child/BootstrapSecurityManager.java

                int count = inputStream.readInt();
                StringBuilder classpathStr = new StringBuilder();
                for (int i = 0; i < count; i++) {
                    String entry = inputStream.readUTF();
                    File file = new File(entry);
                    addUrlMethod.invoke(systemClassLoader, file.toURI().toURL());
                    if (i > 0) {
                        classpathStr.append(File.pathSeparator);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/resolve/service/internal/DefaultInjectedClasspathPluginResolver.java

            if (plugin == null) {
                String classpathStr = injectedClasspath.getAsFiles().stream().map(File::getAbsolutePath).collect(Collectors.joining(File.pathSeparator));
                return PluginResolutionResult.notFound(getDescription(), "classpath: " + classpathStr);
            } else {
                return PluginResolutionResult.found(new InjectedClasspathPluginResolution(plugin));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:19:55 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptClassPathProvider.kt

        val cachedClassPaths = hashMapOf<ClassLoader, Set<File>>()
    
        fun of(classLoader: ClassLoader): Set<File> =
            cachedClassPaths.getOrPut(classLoader) {
                classPathOf(classLoader)
            }
    
        private
        fun classPathOf(classLoader: ClassLoader): Set<File> {
            val classPathFiles = mutableSetOf<File>()
    
            object : ClassLoaderVisitor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:16:36 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/PluginSpecBuilderAccessorsClassPathTest.kt

            val srcDir = newFolder("src")
            val binDir = newFolder("bin")
    
            // when:
            withSynchronousIO {
                buildPluginDependencySpecAccessorsFor(
                    pluginDescriptorsClassPath = classPathOf(pluginsJar),
                    srcDir = srcDir,
                    binDir = binDir
                )
            }
    
            // then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:27 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top