Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for javaSourceFile (0.21 sec)

  1. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleCompositeBuildGroupedTaskFunctionalTest.groovy

                rootProject.name = '$PROJECT_B_NAME'
                includeBuild '${file(PROJECT_A_NAME).toURI()}'
            """
            file("$PROJECT_A_NAME/src/main/java/MyClass.java") << javaSourceFile()
            file("$PROJECT_B_NAME/src/main/java/MyClass.java") << javaSourceFile()
        }
    
        def "can group task output in composite build"() {
            when:
            def result = executer.inDirectory(file(PROJECT_B_NAME)).withTasks('compileJava').run()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleDeprecationMessageGroupedTaskFunctionalTest.groovy

        private static final String JAVA_SRC_DIR_PATH = 'src/main/java'
    
        def "compiler warnings emitted from compilation task are grouped"() {
            given:
            def javaSourceFile = file("$JAVA_SRC_DIR_PATH/MyClass.java")
            def expectedOutput = "${javaSourceFile.absolutePath}:4: warning: [deprecation] Legacy in unnamed package has been deprecated"
    
            buildFile << """
                apply plugin: 'java'
    
                compileJava {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/AbstractCompileAvoidanceIntegrationTest.kt

                rootProject.name = "test-project"
                """
            )
        }
    
        protected
        fun givenJavaClassInBuildSrcContains(classBody: String, classAnnotations: String = ""): String =
            javaSourceFile("buildSrc", classBody, classAnnotations)
    
        protected
        fun givenKotlinClassInBuildSrcContains(classBody: String): String {
            withKotlinDslPluginInBuildSrc()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/compile/BuildScriptCompileAvoidanceIntegrationTest.kt

            withBuildScriptIn(
                baseDir,
                """
                    plugins {
                        id("java-library")
                    }
                """
            )
            val className = javaSourceFile(baseDir, classBody)
            build(existing(baseDir), "build")
            val jarPath = "$baseDir/build/libs/buildscript.jar"
            assertTrue(existing(jarPath).exists())
            return Pair(className, jarPath)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:42 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top