Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 747 for TestFile (0.15 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            new TestFileHelper(this).tgzTo(tarFile, readOnly);
            return this;
        }
    
        public TestFile tbzTo(TestFile tarFile) {
            return tbzTo(tarFile, false);
        }
    
        public TestFile tbzTo(TestFile tarFile, boolean readOnly) {
            new TestFileHelper(this).tbzTo(tarFile, readOnly);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/integtests/ExecIntegrationTest.groovy

                    def testFile = file("$buildDir/out.txt")
                    outputs.file testFile
                    executable = org.gradle.internal.jvm.Jvm.current().getJavaExecutable()
                    args '-cp', sourceSets.main.runtimeClasspath.asPath, 'org.gradle.TestMain', projectDir, testFile
                    doLast {
                        assert testFile.exists()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

        TestFile getSha512File(TestFile file) {
            getHashFile(file, Hashing.sha512())
        }
    
        TestFile sha512File(TestFile file) {
            hashFile(file, Hashing.sha512())
        }
    
        TestFile getMd5File(TestFile file) {
            getHashFile(file, Hashing.md5())
        }
    
        TestFile md5File(TestFile file) {
            hashFile(file, Hashing.md5())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/IntegrationTestBuildContext.java

            }
            return new ReleasedGradleDistribution(version, previousVersionDir.file(version));
        }
    
        protected static TestFile file(String propertyName, String defaultPath) {
            TestFile testFile = optionalFile(propertyName);
            if (testFile != null) {
                return testFile;
            }
            if (defaultPath == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/testFixtures/groovy/org/gradle/buildinit/plugins/fixtures/ScriptDslFixture.groovy

            rootDir.file("gradle/libs.versions.toml")
        }
    
        TestFile scriptFile(String filePathWithoutExtension, TestFile parentFolder = rootDir) {
            def fileWithoutExtension = parentFolder.file(filePathWithoutExtension)
            new TestFile(fileWithoutExtension.parentFile, fileNameFor(fileWithoutExtension.name))
        }
    
        void assertGradleFilesGenerated(TestFile parentFolder = rootDir, String... pathForBuild) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 00:45:16 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

            testFile("build/classes/java/test/test.resource").assertDoesNotExist()
    
            testFile("build/classes/java/main/Main.class").assertExists()
            testFile("build/classes/java/test/TestFoo.class").assertExists()
        }
    
        @Test
        void generatesArtifactsWhenVersionIsEmpty() {
            testFile("settings.gradle") << "rootProject.name = 'empty'"
            def buildFile = testFile("build.gradle")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/fixtures/StaleOutputJavaProject.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class StaleOutputJavaProject {
        public final static String JAR_TASK_NAME = 'jar'
        private final TestFile testDir
        private final String projectPath
        private final String projectDir
        private final String buildDirName
        private final TestFile mainSourceFile
        private final TestFile redundantSourceFile
        private final TestFile mainClassFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/AbsolutePathFileCollectionFingerprinterTest.groovy

        }
    
        def "fingerprint includes existing root elements"() {
            given:
            TestFile file = tmpDir.createFile('file1')
            TestFile dir = tmpDir.createDir('dir')
            TestFile dir2 = dir.createDir('dir2')
            TestFile file2 = dir2.createFile('file2')
            TestFile noExist = tmpDir.file('file3')
    
            when:
            def fingerprint = fingerprinter.fingerprint(files(file, dir, noExist))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 20 16:00:23 UTC 2022
    - 9.9K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/file/FileOrUriNotationConverterTest.groovy

            when:
            def object = parse(notation)
            then:
            object == testFile
        }
    
        def "with TextResource returns the underlying File"() {
            setup:
            def testFile = folder.createFile("test1")
            def notation = Stub(TextResource)
            notation.asFile() >> testFile
            when:
            def object = parse(notation)
            then:
            object == testFile
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 16:59:26 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/classpath/transforms/ClasspathElementTransformTest.groovy

        }
    
        def "instrumentation for #factory preserves classes"() {
            given:
            def testFile = jar(testDir.file("thing.jar")) {
                manifest {}
                entry("Foo.class", classOne())
            }
    
            expect:
            with(transformJar(factory, testFile)) {
                if (expectManifest) {
                    assertManifestPresentAndFirstEntry()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 14 09:24:02 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top