Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,181 for buildDir (0.28 sec)

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

                        }
                    }
                }
    
                project(':lib') {
                    apply plugin: 'base'
                    task jar(type: Jar) {
                        destinationDirectory = buildDir
                        archiveFileName = 'lib.jar'
                        doLast {
                            ${server.callFromBuild('jar')}
                        }
                    }
                    artifacts {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 07:25:15 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceIntegrationTest.groovy

                    }
                }
                task customTask(type: NonCacheableTask) {
                    inputFile = file("input.txt")
                    outputFile = file("\$buildDir/output.txt")
                    outputs.cacheIf { true }
                }
                compileJava.dependsOn customTask
            """
    
            when:
            withBuildCache().run "jar"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputHistoryLossIntegrationTest.groovy

            given:
            def javaProject = new StaleOutputJavaProject(testDirectory, buildDirName)
            buildFile << "apply plugin: 'java'"
    
            if (!defaultDir) {
                buildFile << """
                    buildDir = '$javaProject.buildDirName'
                """
            }
    
            when:
            result = runWithMostRecentFinalRelease(JAR_TASK_NAME)
    
            then:
            javaProject.mainClassFile.assertIsFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/basics/tutorial_using_tasks.adoc

    Here is an example of the `named` method being used to configure a task added by a plugin:
    
    [source,groovy]
    ----
    tasks.named("dokkaHtml") {
        outputDirectory.set(buildDir.resolve("dokka"))
    }
    ----
    
    == Task types
    Gradle tasks are a subclass of link:{javadocPath}/org/gradle/api/Task.html[`Task`].
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 00:09:06 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultTaskTest.groovy

            defaultTask."unknownProp"
    
            then:
            thrown(MissingPropertyException)
        }
    
        def "can get temporary directory"() {
            given:
            def tmpDir = new File(project.buildDir, "tmp/testTask")
    
            expect:
            !tmpDir.exists()
            defaultTask.temporaryDir == tmpDir
            tmpDir.isDirectory()
        }
    
        def "can access services"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

        def "project directory can be used as input"() {
            given:
            def aFile = file("A")
            buildFile << """
            task before {
                def outputFile = new File(buildDir, "output.txt")
                outputs.file outputFile
                outputs.upToDateWhen { false }
    
                doLast {
                    outputFile.parentFile.mkdirs()
                    outputFile.text = "OK"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyUnresolvedModuleIntegrationTest.groovy

        }
    
        private String configSyncTask() {
            """
                task resolve(type: Sync) {
                    from configurations.deps
                    into "\$buildDir/libs"
                }
            """
        }
    
        private void assertDependencyListingReadTimeout(String group, String module, String version) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 11:51:18 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/AggregatingIncrementalAnnotationProcessingIntegrationTest.groovy

            if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_1_9)) {
                buildFile << """
                    tasks.withType(JavaCompile).configureEach {
                        classpath += files("\${buildDir}/classes/java/main")
                    }
                """
            }
        }
    
    
        def "generated files with annotations are reprocessed when a file is deleted (#label)"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 29 15:12:07 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  9. platforms/jvm/language-groovy/src/testFixtures/groovy/org/gradle/groovy/compile/AbstractBasicGroovyCompilerIntegrationSpec.groovy

            buildFile << """
                apply plugin: "groovy"
                ${mavenCentralRepository()}
                compileGroovy {
                    groovyOptions.with {
                        stubDir = file("\$buildDir/classes/stub")
                        keepStubs = true
                    }
                }
            """
    
            if (java) {
                file("src/main/groovy/Java.java") << java
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 27K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    ====
    [.multi-language-sample]
    =====
    .app/build.gradle.kts
    [source,kotlin]
    ----
    tasks.compileJava {
        // Modify the task behavior
        doLast {
            val outputDir = File("$buildDir/compiledClasses")
            outputDir.mkdirs()
    
            val compiledFiles = sourceSets["main"].output.files
            compiledFiles.forEach { compiledFile ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
Back to top