Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeApiTo (0.29 sec)

  1. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileTaskOperationResultIntegTest.groovy

            file("src/main/java/SomeClass.java") << """
                @Helper class SomeClass {}
            """
            def processorProjectDir = file("processor")
            def fixture = new HelperProcessorFixture()
            fixture.writeApiTo(processorProjectDir)
            fixture.writeAnnotationProcessorTo(processorProjectDir)
            fixture.writeSupportLibraryTo(processorProjectDir)
        }
    
        @Issue("https://github.com/gradle/gradle/issues/22999")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/testFixtures/groovy/org/gradle/language/fixtures/AnnotationProcessorFixture.groovy

            this.annotationPackageName = annotationPackageName
            this.fqAnnotationName = annotationPackageName.empty ? annotationName : "${annotationPackageName}.${annotationName}"
        }
    
        final void writeApiTo(TestFile projectDir) {
            def packagePathPrefix = annotationPackageName.empty ? '' : "${annotationPackageName.replace('.', '/')}/"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 29 15:12:07 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompileAvoidanceIntegrationSpec.groovy

                        classpath = sourceSets.main.runtimeClasspath
                    }
                }
            """
    
            def fixture = new HelperProcessorFixture()
    
            // The annotation
            fixture.writeApiTo(file("a"))
    
            // The processor and library
            fixture.writeSupportLibraryTo(file("b"))
            fixture.writeAnnotationProcessorTo(file("b"))
    
            // The class that is the target of the processor
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/AbstractIncrementalAnnotationProcessingIntegrationTest.groovy

                }
            """
        }
    
        protected void withProcessor(AnnotationProcessorFixture processor) {
            processor.writeSupportLibraryTo(libraryProjectDir)
            processor.writeApiTo(annotationProjectDir)
            processor.writeAnnotationProcessorTo(processorProjectDir)
        }
    
        protected final File java(@Language("java") String... classBodies) {
            javaInPackage('', classBodies)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 29 15:12:07 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/crossVersionTest/groovy/org/gradle/api/internal/tasks/compile/tooling/JavaCompileTaskOperationResultCrossVersionTest.groovy

            file("src/main/java/SomeClass.java") << """
                @Helper class SomeClass {}
            """
            def processorProjectDir = file("processor")
            def fixture = new HelperProcessorFixture()
            fixture.writeApiTo(processorProjectDir)
            fixture.writeAnnotationProcessorTo(processorProjectDir)
            fixture.writeSupportLibraryTo(processorProjectDir)
        }
    
        @TargetGradleVersion(">=5.1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaAnnotationProcessingIntegrationTest.groovy

            """
    
            // A library class used by processor at runtime, but not the generated classes
            fixture.writeSupportLibraryTo(processorProjectDir)
    
            // The processor and annotation
            fixture.writeApiTo(annotationProjectDir)
            fixture.writeAnnotationProcessorTo(processorProjectDir)
    
            // The class that is the target of the processor
            file('src/main/java/TestApp.java') << '''
                @Helper
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top