Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for javaClassFile (1.11 sec)

  1. testing/soak/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSoakTest.groovy

        }
    
        def "can download missing jdk automatically"() {
            when:
            result = executer
                    .withTasks("compileJava")
                    .run()
    
            then:
            javaClassFile("Foo.class").assertExists()
            assertJdkWasDownloaded()
        }
    
        def "clean destination folder when downloading toolchain"() {
            when: "build runs and doesn't have a local JDK to use for compilation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 16:13:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/JavaCrossCompilationIntegrationTest.groovy

            }
            succeeds 'test'
            getClassMajorVersion(javaClassFile("Thing.class")) == TestJavaClassUtil.getClassVersion(toJavaVersion(version))
            getClassMajorVersion(classFile ( "java", "test", "ThingTest.class")) == TestJavaClassUtil.getClassVersion(toJavaVersion(version))
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 05:59:30 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaCompileOnlyDependencyIntegrationTest.groovy

    apply plugin: 'java'
    
    ${mavenCentralRepository()}
    
    dependencies {
        compileOnly 'commons-logging:commons-logging:1.2'
    }
    """
    
            when:
            run('compileJava')
    
            then:
            javaClassFile('Test.class').exists()
        }
    
        def "production compile only dependencies not visible to tests"() {
            given:
            file('src/test/java/Test.java') << """
    import org.apache.commons.logging.Log;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top