Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for destPath (0.15 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/CopySpecWrapper.java

        }
    
        @Override
        public CopySpec into(Object destPath) {
            delegate.into(destPath);
            return this;
        }
    
        @Override
        public CopySpec into(Object destPath, Closure configureClosure) {
            return delegate.into(destPath, configureClosure);
        }
    
        @Override
        public CopySpec into(Object destPath, Action<? super CopySpec> copySpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/DefaultCopySpecCodec.kt

                writeCollection(value.children)
            }
        }
    
        override suspend fun ReadContext.decode(): DefaultCopySpec {
            return decodePreservingIdentity { id ->
                val destPath = readNullableString()
                val sourceFiles = read() as FileCollection
                val patterns = read() as PatternSet
                val duplicatesStrategy = readEnum<DuplicatesStrategy>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ZipIntegrationTest.groovy

            when:
            succeeds "zip", "--info"
            then:
            executedAndNotSkipped(":zip")
            output.contains "Value of input property 'rootSpec\$1\$1.destPath' has changed for task ':zip'"
            output.contains "Value of input property 'rootSpec\$1\$1\$1.destPath' has changed for task ':zip'"
        }
    
        private def createTestFiles() {
            createDir('dir1', {
                file('file1.txt').text = "dir1/file1.txt"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/file/CopyProcessingSpec.java

         * Specifies the destination directory for a copy. The destination is evaluated as per {@link
         * org.gradle.api.Project#file(Object)}.
         *
         * @param destPath Path to the destination directory for a Copy
         * @return this
         */
        CopyProcessingSpec into(Object destPath);
    
        /**
         * Renames a source file. The closure will be called with a single parameter, the name of the file.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 07:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionExecutorTest.groovy

            1 * delegateAction.processFile({ it.relativePath.pathString == '/root/path/file2.txt' })
            thrown(DuplicateFileCopyingException)
        }
    
    
        void files(String... fileNames) {
            copySpecResolver.destPath >> new RelativePath(false, '/root')
            def fileTree = Mock(FileTree)
            copySpecResolver.getSource() >> fileTree
            fileTree.visit(_ as FileVisitor) >> { FileVisitor visitor ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/internal/trace/reader_test.go

    	}
    	for _, testPath := range matches {
    		testPath := testPath
    		testName, err := filepath.Rel("./testdata", testPath)
    		if err != nil {
    			t.Fatalf("failed to relativize testdata path: %v", err)
    		}
    		t.Run(testName, func(t *testing.T) {
    			tr, exp, err := testtrace.ParseFile(testPath)
    			if err != nil {
    				t.Fatalf("failed to parse test file at %s: %v", testPath, err)
    			}
    			testReader(t, tr, exp)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. src/internal/trace/testtrace/format.go

    // ParseFile parses a test file generated by the testgen package.
    func ParseFile(testPath string) (io.Reader, *Expectation, error) {
    	ar, err := txtar.ParseFile(testPath)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err)
    	}
    	if len(ar.Files) != 2 {
    		return nil, nil, fmt.Errorf("malformed test %s: wrong number of files", testPath)
    	}
    	if ar.Files[0].Name != "expect" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/trace/jsontrace_test.go

    	}
    	return
    }
    
    func getTestTrace(t *testing.T, testPath string) *parsedTrace {
    	t.Helper()
    
    	// First read in the text trace and write it out as bytes.
    	f, err := os.Open(testPath)
    	if err != nil {
    		t.Fatalf("failed to open test %s: %v", testPath, err)
    	}
    	r, err := raw.NewTextReader(f)
    	if err != nil {
    		t.Fatalf("failed to read test %s: %v", testPath, err)
    	}
    	var trace bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/cgotest/overlaydir.go

    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    			return err
    		}
    		defer src.Close()
    
    		dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. src/cmd/internal/bootstrap_test/overlaydir_test.go

    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If we can use a hard link, do that instead of copying bytes.
    		// Go builds don't like symlinks in some cases, such as go:embed.
    		if err := os.Link(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    		src, err := os.Open(srcPath)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:35:05 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top