Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for setUpProject (0.16 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheStandardStreamsIntegrationTest.groovy

    import javax.annotation.Nullable
    
    class ConfigurationCacheStandardStreamsIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
        def "#task task can run with default configuration"() {
            setUpProject(
                makeTask(task, extraArg: "Gradle")
            )
    
            when:
            configurationCacheRun("run")
    
            then:
            outputContains("Hello, Gradle")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftCachingIntegrationTest.groovy

            def newLocation = file('new-location')
            def allCompileTasks = ['', ':hello', ':log'].collect { compileTask(it, buildType) } as String[]
            setupProject(originalLocation)
            setupProject(newLocation)
    
            when:
            inDirectory(originalLocation)
            withBuildCache().run compileTask(buildType)
    
            then:
            executedAndNotSkipped allCompileTasks
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventLegacyCrossVersionTest.groovy

            setupProject()
    
            when:
            def events = ProgressEvents.create()
            withConnection {
                it.newBuild().forTasks(":a:taskC")
                    .addProgressListener(events, OperationType.BUILD_PHASE)
                    .run()
            }
    
            then:
            events.getAll().isEmpty()
        }
    
        def setupProject() {
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppCachingIntegrationTest.groovy

        def "compilation task is relocatable for release"() {
    
            def originalLocation = file('original-location')
            def newLocation = file('new-location')
            setupProject(originalLocation)
            setupProject(newLocation)
    
            when:
            inDirectory(originalLocation)
            withBuildCache().run tasks.release.compile
    
            def snapshotsInOriginalLocation = snapshotObjects(originalLocation)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r76/BuildPhaseOperationEventCrossVersionTest.groovy

    @TargetGradleVersion('>=7.6')
    class BuildPhaseOperationEventCrossVersionTest extends ToolingApiSpecification {
    
        def "generates build phase events for task #taskName and expects #expectedReportedTasksCount run tasks"() {
            setupProject()
    
            when:
            def events = ProgressEvents.create()
            withConnection {
                it.newBuild().forTasks(taskName)
                    .addProgressListener(events, OperationType.BUILD_PHASE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 10:41:50 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/FinalizerTaskIntegrationTest.groovy

                result.assertTaskOrder any(':jarOne', ':shadowJar'), ':jar', ':copyJars'
            }
        }
    
        void 'finalizer tasks are scheduled as expected (#requestedTasks)'() {
            given:
            setupProject()
    
            expect:
            2.times {
                succeeds(*requestedTasks)
                result.assertTasksExecutedInOrder any(':d', exact(':c', ':a')), ':b'
            }
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/TestExecutionBuildTaskSchedulerTest.groovy

            debugOptions.isDebugMode() >> false
            testExecutionRequest.getDebugOptions() >> debugOptions
            testExecutionRequest.getTaskSpecs() >> []
    
            setupProject()
            setupTestTask()
        }
    
        private void setupProject() {
            _ * gradleInternal.owner >> buildState
            _ * buildState.projects >> buildProjectRegistry
            _ * buildProjectRegistry.allProjects >> [projectState]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:59:43 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy

            } else {
                Tar tar = new Tar()
                tar.setProject(new Project())
                setSourceDirectory(tar, readOnly)
                tar.setDestFile(tarFile)
                tar.execute()
            }
        }
    
        void tgzTo(TestFile tarFile, boolean readOnly) {
            Tar tar = new Tar()
            tar.setProject(new Project())
            setSourceDirectory(tar, readOnly)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/tasks/ant/AntTargetTest.java

        private final AntTarget task = TestUtil.createTask(AntTarget.class, project);
    
        @Before
        public void setUp() {
            antTarget.setProject(new Project());
        }
    
        @Test
        public void executesTargetOnExecute() {
            TestTask testTask = new TestTask();
            testTask.setProject(antTarget.getProject());
            antTarget.addTask(testTask);
            task.setTarget(antTarget);
            task.setBaseDir(baseDir);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 30 07:54:03 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingRequest.java

    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 8.9K bytes
    - Viewed (0)
Back to top