Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 355 for createFile1 (0.29 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/LegacyWindowsSdkLocatorTest.groovy

        }
    
        def sdkDir(String name) {
            def dir = tmpDir.createDir(name)
            dir.createFile("bin/rc.exe")
            dir.createFile("lib/kernel32.lib")
            return dir
        }
    
        def kitDir(String name) {
            def dir = tmpDir.createDir(name)
            dir.createFile("bin/x86/rc.exe")
            dir.createFile("lib/win8/um/x86/kernel32.lib")
            return dir
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/MultiProjectContinuousIntegrationTest.groovy

                    }
                }
            """
    
            upstreamSource = file("upstream/src/main/java/Upstream.java") << "class Upstream {}"
            downstreamSource = file("downstream/src/main/java/Downstream.java").createFile() << "class Downstream extends Upstream {}"
    
            // MacOS builds with Intel machines can be too fast on CI and
            // changes generated during build are picked up only after the build which retriggers the build
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/SkipEmptyIncrementalWorkStepTest.groovy

                { -> outputsCleaner },
                delegate)
        }
    
        def "skips when work has empty sources and previous outputs (#description)"() {
            def previousOutputFile = file("output.txt").createFile()
            def outputFileSnapshot = snapshot(previousOutputFile)
    
            when:
            def result = step.execute(work, context)
    
            then:
            interaction {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:46:24 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DirectorySensitivityErrorHandlingIntegrationSpec.groovy

                task taskWithInputs(type: TaskWithInputs) {
                    input = ${nonDirectoryInput.value}
                    outputFile = file("\${buildDir}/output")
                }
            """
    
            file('foo').createFile()
    
            when:
            fails("taskWithInputs")
    
            then:
            failureDescriptionContains(
                incompatibleAnnotations {
                    type('TaskWithInputs').property('input')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 09:08:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java

            if (caseSensitive == null) {
    
                String content = generateUniqueContent();
                File file = null;
                try {
                    checkJavaIoTmpDirExists();
                    file = createFile(content);
                    caseSensitive = probeCaseSensitive(file, content);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. platforms/native/tooling-native/src/crossVersionTest/groovy/org/gradle/language/cpp/tooling/r52/CppModelCrossVersionSpec.groovy

                }
            """
            def headerDir = file('src/main/headers')
            def src1 = file('src/main/cpp/app.cpp').createFile()
            def src2 = file('src/main/cpp/app-impl.cpp').createFile()
    
            when:
            def project = withConnection { connection -> connection.getModel(CppProject.class) }
    
            then:
            project.projectIdentifier.projectPath == ':'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/plugins/CppLibraryPluginTest.groovy

        def "adds extension with convention for source layout and base name"() {
            given:
            def src = projectDir.file("src/main/cpp/main.cpp").createFile()
            def publicHeaders = projectDir.file("src/main/public").createDir()
    
            when:
            project.pluginManager.apply(CppLibraryPlugin)
    
            then:
            project.library instanceof CppLibrary
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/swift/plugins/SwiftLibraryPluginTest.groovy

        def "adds extension with convention for source layout and module name"() {
            given:
            def src = projectDir.file("src/main/swift/main.swift").createFile()
    
            when:
            project.pluginManager.apply(SwiftLibraryPlugin)
            project.evaluate()
    
            then:
            project.library instanceof SwiftLibrary
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFileTreeElementTest.groovy

        @Rule TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def "permissions on file can be read"() {
            def stat = Mock(Stat)
            def f = tmpDir.createFile("f")
            FileTreeElement e = new DefaultFileTreeElement(f, null, Stub(Chmod), stat)
    
            given:
            stat.getUnixMode(f) >> 0644
    
            expect:
            e.getPermissions().toUnixNumeric() == 0644
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

            }
            return prefix;
        }
    
        public TestFile file(Object... path) {
            return getTestDirectory().file(path);
        }
    
        public TestFile createFile(Object... path) {
            return file(path).createFile();
        }
    
        public TestFile createDir(Object... path) {
            return file(path).createDir();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top