Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for destPath (0.2 sec)

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

            this.destDir = destDir;
            return this;
        }
    
        @Override
        public CopySpec into(Object destPath, Closure configureClosure) {
            return into(destPath, new ClosureBackedAction<>(configureClosure));
        }
    
        @Override
        public CopySpec into(Object destPath, Action<? super CopySpec> copySpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:25:10 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  2. 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)
  3. src/os/file_windows.go

    				// Prepend the volume explicitly, because it may be different from the
    				// volume of the current working directory.
    				destpath = v + oldname
    			}
    		} else {
    			// oldname is relative to newname.
    			destpath = dirname(newname) + `\` + oldname
    		}
    	}
    
    	fi, err := Stat(destpath)
    	isdir := err == nil && fi.IsDir()
    
    	n, err := syscall.UTF16PtrFromString(fixLongPath(newname))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/internal/trace/summary_test.go

    }
    
    func TestRelatedGoroutinesV2Trace(t *testing.T) {
    	testPath := "testdata/tests/go122-gc-stress.test"
    	trc, _, err := testtrace.ParseFile(testPath)
    	if err != nil {
    		t.Fatalf("malformed test %s: bad trace file: %v", testPath, err)
    	}
    
    	// Create a reader.
    	r, err := trace.NewReader(trc)
    	if err != nil {
    		t.Fatalf("failed to create trace reader for %s: %v", testPath, err)
    	}
    
    	// Collect all the events.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K 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. pkg/volume/csi/csi_client_test.go

    	}{
    		{name: "test ok", volID: "vol-test", targetPath: testPath},
    		{name: "missing volID", targetPath: testPath, mustFail: true},
    		{name: "missing target path", volID: "vol-test", mustFail: true},
    		{name: "bad fs", volID: "vol-test", targetPath: testPath, fsType: "badfs", mustFail: true},
    		{name: "grpc error", volID: "vol-test", targetPath: testPath, mustFail: true, err: errors.New("grpc error")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top