Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for buildFile (0.28 sec)

  1. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

            file("run.sh") << '''#!/bin/sh
    # convert paths into absolute Unix-like paths
    BUILD_FILE=$(cygpath --absolute --unix build.gradle)
    SRC_DIR=$(cygpath --absolute --unix src)
    # pass them to the generated start script
    build/install/sample/bin/sample "$BUILD_FILE" "$SRC_DIR"
    '''
            buildFile << """
    task execStartScript(type: Exec) {
        commandLine 'cmd.exe', '/d', '/c', 'sh', 'run.sh'
    }
    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/TaskExecutionIntegrationTest.groovy

    class TaskExecutionIntegrationTest extends AbstractIntegrationSpec implements TasksWithInputsAndOutputs {
    
        @UnsupportedWithConfigurationCache
        def taskCanAccessTaskGraph() {
            buildFile << """
                boolean notified = false
                task a(dependsOn: 'b') {
                    doLast { task ->
                        assert notified
                        assert gradle.taskGraph.hasTask(task)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  3. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildDependencyGraphIntegrationTest.groovy

            given:
            buildA.buildFile << """
                dependencies {
                    implementation "org.test:buildB:1.0"
                }
            """
            buildB.buildFile << """
                dependencies {
                    implementation "org.test:buildC:1.0"
                }
            """
            def buildC = singleProjectBuild("buildC") {
                buildFile << """
                    apply plugin: 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 19:37:49 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

            buildFile << """
                javadoc {
                    options.stylesheetFile = file('src/not-docs/custom.css')
                }
            """
            succeeds("javadoc")
            then:
            skipped(":javadoc")
        }
    
        def "can exclude a package by source path"() {
            buildFile << """
                plugins {
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            given:
            file("input.txt") << "data"
            buildFile << adHocTaskWithInputs()
    
            expect:
            taskIsNotCached ':adHocTask'
        }
    
        def "ad hoc tasks are cached when explicitly requested"() {
            given:
            file("input.txt") << "data"
            buildFile << adHocTaskWithInputs()
            buildFile << 'adHocTask { outputs.cacheIf { true } }'
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeferredTaskConfigurationIntegrationTest.groovy

    import spock.lang.Issue
    
    class DeferredTaskConfigurationIntegrationTest extends AbstractDeferredTaskDefinitionIntegrationTest {
        def "build logic can configure each task only when required"() {
            buildFile << '''
                tasks.register("task1", SomeTask).configure {
                    println "Configure ${path}"
                }
                tasks.named("task1").configure {
                    println "Configure again ${path}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

    class RuleTaskBridgingIntegrationTest extends AbstractIntegrationSpec implements WithRuleBasedTasks {
    
        def "can view task container as various view types"() {
            given:
            buildFile << '''
                class MyPlugin extends RuleSource {
                    @Mutate
                    void applyMessages(ModelMap<Task> tasks) {
                        println "as map: $tasks"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/MultiProjectJvmApplicationInitIntegrationTest.groovy

            then:
            targetDir.file(settingsFile).exists()
            !targetDir.file(buildFile).exists()
    
            def buildLogicDir = targetDir.file(incubating ? "build-logic" : "buildSrc")
            assertBuildLogicSources(dsl, language, buildLogicDir, settingsFile, buildFile, javaMajorVersion)
    
            assertApplicationProjectsSources(buildFile, language, "org.example.", ext)
    
            when:
            succeeds "build"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            buildFile """
                interface Thing extends Named { }
    
                def t = objects.newInstance(Thing, "thingName")
                assert t.name == "thingName"
    """
    
            expect:
            succeeds()
        }
    
        def "plugin can create instance of abstract class with name property"() {
            buildFile """
                abstract class Thing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/TaskCacheabilityReasonIntegrationTest.groovy

            buildFile << """
                task unspecified(type: UnspecifiedCacheabilityTask) {}
            """
            when:
            withBuildCache().run "unspecified"
            then:
            assertCachingDisabledFor NOT_ENABLED_FOR_TASK, "Caching has not been enabled for the task"
        }
    
        def "cacheability for a cacheable task is null"() {
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:59:01 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top