Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for getClasspathForClass (0.2 sec)

  1. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/AutoTestedSamplesToolingApiTest.groovy

            fileManager.setLocation(location, [temp.testDirectory]);
    
            location = ("javax.tools.StandardLocation" as Class).CLASS_PATH
            fileManager.setLocation(location, [ClasspathUtil.getClasspathForClass(Element)]);
    
            def checkDiagnostic = { diagnostic ->
                if (diagnostic.kind.name() == 'ERROR') {
                    String[] lines = source.split("\n")
                    int lineNo = diagnostic.lineNumber - 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.5K 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. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultIsolatedAntBuilderTest.groovy

        }
    
        @Test
        void bridgesLogging() {
            def classpath = ClasspathUtil.getClasspathForClass(TestAntTask)
    
            builder.withClasspath([classpath]).execute {
                taskdef(name: 'loggingTask', classname: TestAntTask.name)
                loggingTask()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 22 10:43:11 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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