Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for writeToFile (0.17 sec)

  1. pkg/kubelet/config/file_linux_test.go

    			}
    			expectEmptyUpdate(t, ch)
    
    			addFile := func() {
    				// Add a file
    				if symlink {
    					testCase.writeToFile(linkedDirName, fileName, t)
    					return
    				}
    
    				testCase.writeToFile(dirName, fileName, t)
    			}
    
    			go addFile()
    
    			// For !watchDir: expect an update by SourceFile.reloadConfig().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/swift/SwiftCompiler.java

                    }
    
                    genericArgs.add("-emit-object");
    
                    File outputFileMapFile = new File(spec.getObjectFileDir(), "output-file-map.json");
                    outputFileMap.writeToFile(outputFileMapFile);
    
                    List<String> outputArgs = new ArrayList<>();
                    outputArgs.add("-output-file-map");
                    outputArgs.add(outputFileMapFile.getAbsolutePath());
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/testFixtures/groovy/org/gradle/workers/fixtures/WorkerExecutorFixture.groovy

                return importDeclarations
            }
    
            TestClass writeToFile(File file) {
                file.text = """
                    package ${packageName};
    
                    ${importDeclarations}
    
                    ${body}
                """
                return this
            }
    
            TestClass writeToBuildSrc() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 12:36:12 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

            thrown RuntimeException
    
            when:
            lock.readFile({})
    
            then:
            thrown FileIntegrityViolationException
        }
    
        def "existing lock is unlocked cleanly after writeToFile() has been called"() {
            when:
            def lock = this.createLock(Exclusive)
            lock.writeFile({})
            lock.updateFile({} as Runnable)
    
            then:
            lock.unlockedCleanly
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AbstractTransformExecution.java

                        TransformExecutionResultSerializer resultSerializer = new TransformExecutionResultSerializer();
                        resultSerializer.writeToFile(getResultsFile(workspace), result);
                        return result;
                    } finally {
                        context.setResult(ExecuteTransformActionBuildOperationType.RESULT_INSTANCE);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

            file("buildSrc").deleteDir()
    
            def builder = artifactBuilder()
            fixture.workActionThatCreatesFiles.writeToFile builder.sourceFile("org/gradle/test/TestWorkAction.java")
            fixture.testParameterType.writeToFile builder.sourceFile("org/gradle/test/TestParameters.java")
    
            builder.sourceFile("org/gradle/other/Foo.java") << """
                $fixture.parameterClass
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSingleProjectIntegrationTest.groovy

        @NotYetImplemented
        def "visual studio project includes headers co-located with sources"() {
            when:
            // Write headers so they sit with sources
            app.files.each {
                it.writeToFile(file("src/main/cpp/${it.name}"))
            }
            settingsFile << """
                rootProject.name = 'app'
            """
            buildFile << """
                apply plugin: 'cpp-application'
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. pkg/kubelet/certificate/bootstrap/bootstrap.go

    			Cluster:   "default-cluster",
    			AuthInfo:  "default-auth",
    			Namespace: "default",
    		}},
    		CurrentContext: "default-context",
    	}
    
    	// Marshal to disk
    	return clientcmd.WriteToFile(kubeconfigData, kubeconfigPath)
    }
    
    func loadRESTClientConfig(kubeconfig string) (*restclient.Config, error) {
    	// Load structured kubeconfig data from the given path.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 14.2K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelSingleProjectIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "visual studio project includes headers co-located with sources"() {
            when:
            // Write headers so they sit with sources
            app.files.each {
                it.writeToFile(file("src/main/cpp/${it.name}"))
            }
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
                    cpp.source.include "**/*.cpp"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 35.7K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/fetch.go

    	if zipExists {
    		return hashZip(mod, zipfile, ziphashfile)
    	}
    
    	// From here to the os.Rename call below is functionally almost equivalent to
    	// renameio.WriteToFile, with one key difference: we want to validate the
    	// contents of the file (by hashing it) before we commit it. Because the file
    	// is zip-compressed, we need an actual file — or at least an io.ReaderAt — to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top