Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 355 for createFile1 (0.18 sec)

  1. platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/AbstractIdeProjectIntegrationTest.groovy

            String applyTo = allProjects ? "allprojects" : "subprojects"
            buildFile.createFile().text = """
    $applyTo {
        apply plugin:'java'
        apply plugin:'$ideName'
    }
    """
            settingsFile.createFile().text = "rootProject.name='$projectName'\n"
            def proj = new Project(name: projectName, path: "", projectDir: getTestDirectory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        protected void finalize() throws Throwable {
            maybeWarnAboutCleanUp();
    
            super.finalize();
        }
    
        public File createFile(String filename, String content, String encoding) throws IOException {
            File dir = createTempDir();
            return createFile(dir, filename, content, encoding);
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy

    public class ManifestUtilTest extends Specification {
        @Rule
        final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        def jarFile = tmpDir.file("mydir/jarfile.jar").createFile()
    
        def "creates manifest classpath with relative urls"() {
            when:
            def classpathFiles = [tmpDir.file('mydir/jar1.jar'), tmpDir.file('mydir/nested/jar2.jar')]
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivec/tasks/ObjectiveCCompileTest.groovy

            pch.includeString >> "header"
            pch.prefixHeaderFile >> temporaryFolder.file("prefixHeader").createFile()
            pch.objectFile >> temporaryFolder.file("pchObjectFile").createFile()
            pch.pchObjects >> TestFiles.empty()
            1 * objCCompiler.execute({ ObjectiveCCompileSpec spec ->
                assert spec.sourceFiles*.name == ["sourceFile"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/BuildSessionServiceReuseContinuousIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "reuses #service across continuous builds" () {
            def triggerFileName = "trigger"
            def triggerFile = file(triggerFileName).createFile()
            def idFileName = "build/${service}.id"
            def idFile = file(idFileName).createFile()
            buildFile << """
                import ${UnscopedCacheBuilderFactory.name}
                import ${WorkerProcessClassPathProvider.name}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/prebuilt/DefaultPrebuiltStaticLibraryBinaryTest.groovy

        }
    
        def "can set static library file"() {
            given:
            def file = createFile()
    
            when:
            binary.staticLibraryFile = file
    
            then:
            binary.staticLibraryFile == file
            binary.linkFiles.files == [file] as Set
    
            and:
            binary.runtimeFiles.empty
        }
    
        def createFile() {
            def file = Stub(File) {
                exists() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/tasks/SourceTaskTest.groovy

        def setup() {
            task = createTask(SourceTask.class)
        }
    
        def "can append to source"() {
            given:
            File file1 = temporaryFolder.file('file1.txt').createFile()
            File file2 = temporaryFolder.file('file2.txt').createFile()
            file2.createNewFile()
    
            task.source = file1
            task.source = task.source + project.layout.files(file2)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 22 12:57:17 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

            skipped ':producesLink'
    
            when:
            target.createFile()
            run 'producesLink'
            then:
            executedAndNotSkipped ':producesLink'
        }
    
        @Issue('https://github.com/gradle/gradle/issues/1365')
        def "broken symlink not produced by task is ignored"() {
            given:
            def input = file("input.txt").createFile()
            def outputDirectory = file("output")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy

            f2.parentFile.mkdirs()
            f2 << 'content'
        }
    }
    """
        }
    
        def "uses the target of symlink for input file content"() {
            file("in-dir").createDir()
            def inFile = file("other").createFile()
            def link = file("in.txt")
            link.createLink("other")
    
            given:
            run("work")
            run("work")
            result.assertTasksSkipped(":work")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 14:30:36 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. src/internal/filepathlite/path_windows.go

    			switch name[3:] {
    			case "\u00b2", "\u00b3", "\u00b9":
    				return true
    			}
    			return false
    		}
    	}
    
    	// Passing CONIN$ or CONOUT$ to CreateFile opens a console handle.
    	// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles
    	//
    	// While CONIN$ and CONOUT$ aren't documented as being files,
    	// they behave the same as CON. For example, ./CONIN$ also opens the console input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top