Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getClasspathForClass (0.35 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)
Back to top