Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getClasspathForClass (0.17 sec)

  1. platforms/core-runtime/build-process-services/src/main/java/org/gradle/internal/installation/CurrentGradleInstallationLocator.java

            } else {
                return new CurrentGradleInstallation(new GradleInstallation(dir));
            }
        }
    
        private static File findDistDir(Class<?> clazz) {
            File codeSource = ClasspathUtil.getClasspathForClass(clazz);
            if (codeSource.isFile()) {
                return determineDistRootDir(codeSource);
            } else {
                // Loaded from a classes dir - assume we're running from the ide or tests
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/daemon-protocol/src/testFixtures/groovy/org/gradle/tooling/internal/provider/AbstractClassGraphSpec.groovy

        /**
         * Returns the classpath for the given classes.
         */
        List<File> originalClassPath(Class<?>... classes) {
            return classes.collect { ClasspathUtil.getClasspathForClass(it) }
        }
    
    
        /**
         * Makes a copy of the given classes and returns the classpath for these copies. Each class is added to its own classpath root.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 00:13:09 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/serialization/ClasspathInferer.java

            try {
                if (resource == null) {
                    LOGGER.warn("Could not determine classpath for {}", target);
                    return;
                }
    
                File classPathRoot = ClasspathUtil.getClasspathForClass(target);
                dest.add(classPathRoot.toURI());
    
                // To determine the dependencies of the class, load up the byte code and look for CONSTANT_Class entries in the constant pool
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/DefaultGradleRunner.java

                }
                String messagePrefix = "Could not find a Gradle installation to use based on the location of the GradleRunner class";
                try {
                    File classpathForClass = ClasspathUtil.getClasspathForClass(GradleRunner.class);
                    messagePrefix += ": " + classpathForClass.getAbsolutePath();
                } catch (Exception ignore) {
                    // ignore
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveTestFixture.groovy

            }
            def buildScriptBlock = """
    buildscript {
        dependencies.classpath files("${ClasspathUtil.getClasspathForClass(GenerateGraphTask).toURI()}")
    }
    """
            String generatedContent = ""
            builder.configs.forEach { config, taskName ->
                generatedContent += """
    allprojects {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 37.8K bytes
    - Viewed (0)
Back to top