Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for moveToDirectory (0.23 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TransformProgressEventCrossVersionSpec.groovy

                successful
            }
        }
    
        def "reports transform progress events for included builds"() {
            given:
            withFileSizerTransform()
            settingsFile.moveToDirectory(file('included'))
            buildFile.moveToDirectory(file('included'))
            settingsFile << """
                includeBuild 'included'
            """
            buildFile << """
                task run {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/classpath/impl/DefaultClasspathFingerprinterTest.groovy

                ['thirdFile.txt', 'thirdFile.txt', '138f1960a77eecec5f03362421bf967a'],
            ]
    
            when:
            file('zipContents/firstFile.txt').moveToDirectory(file('zipContents/subdir'))
            file('classes/thirdFile.txt').moveToDirectory(file('classes/subdir'))
            file('zipContents').zipTo(zipFile)
    
            fileCollectionFingerprint = fingerprint(zipFile, classes)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConventionalPluginClasspathInjectionEndUserIntegrationTest.groovy

            new JUnitXmlTestExecutionResult(projectDir).totalNumberOfTestClassesExecuted > 0
        }
    
        def "can use custom source set"() {
            when:
            file("src/test/groovy/Test.groovy").moveToDirectory(file("src/functionalTest/groovy"))
            buildFile << """
                sourceSets {
                    functionalTest {}
                }
    
                configurations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenFileRepoResolveIntegrationTest.groovy

            // Create a module to get the correct module directory, but do not publish the module
            def artifactsModuleA = artifactsRepo.module('group', 'projectA', '1.2')
            moduleA.artifactFile.moveToDirectory(artifactsModuleA.moduleDir)
    
            and:
            buildFile << """
    repositories {
        maven {
            url "${mavenRepo().uri}"
            artifactUrls "${artifactsRepo.uri}"
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. platforms/enterprise/enterprise-plugin-performance/src/performanceTest/groovy/org/gradle/performance/BuildScanPluginPerformanceTest.groovy

                    def targetDirectory = new File("build/scan-dumps/$testId")
                    targetDirectory.deleteDir()
                    FileUtils.moveToDirectory(spoolDir, targetDirectory, true)
                }
            }
    
            private File spoolDir() {
                new File(invocationSettings.gradleUserHome, "build-scan-data")
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 19 09:04:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/AbstractSourceIncrementalCompilationIntegrationTest.groovy

            public class B {
                public static class Inner { }
            }"""
    
            run language.compileTaskName
    
            when:
            movedFile.moveToDirectory(file("src/main/${languageName}/some/dir"))
            outputs.snapshot { run language.compileTaskName, '-i' }
    
            then:
            skipped(":${language.compileTaskName}")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

            when:
            succeeds("javadoc")
            then:
            skipped(":javadoc")
    
            when:
            file("src/docs/custom.css").moveToDirectory(file("src/not-docs"))
            buildFile << """
                javadoc {
                    options.stylesheetFile = file('src/not-docs/custom.css')
                }
            """
            succeeds("javadoc")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy

        }
    
        def "can change built-in config_loc"() {
            given:
            goodCode()
            def suppressionsXml = file("config/checkstyle/suppressions.xml")
            suppressionsXml.moveToDirectory(file("custom"))
    
            buildFile << """
                checkstyle {
                    configFile = file("config/checkstyle/checkstyle.xml")
                    configDirectory = file("custom")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  9. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                    } catch (IOException e) {
                        throw new UncheckedIOException(e);
                    }
                }
            });
        }
    
        public void moveToDirectory(File target) {
            if (target.exists() && !target.isDirectory()) {
                throw new RuntimeException(String.format("Target '%s' is not a directory", target));
            }
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top