Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 146 for copyfile (0.15 sec)

  1. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioIncrementalIntegrationTest.groovy

    import org.gradle.integtests.fixtures.ToBeFixedForConfigurationCache
    import org.gradle.internal.os.OperatingSystem
    import org.gradle.nativeplatform.fixtures.app.CppHelloWorldApp
    
    import static org.apache.commons.io.FileUtils.copyFile
    
    class VisualStudioIncrementalIntegrationTest extends AbstractVisualStudioIntegrationSpec {
        def app = new CppHelloWorldApp()
    
        def setup() {
            settingsFile << """
                rootProject.name = 'app'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

            }
        }
    
        /**
         * If the destination file exists, then this method will overwrite it.
         *
         * @see FileUtils#copyFile(File, File)
         */
        public static void copyFile(File source, File destination) {
            try {
                FileUtils.copyFile(source, destination);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/shell.go

    		if err := os.Rename(src, dst); err == nil {
    			if cfg.BuildX {
    				sh.ShowCmd("", "mv %s %s", src, dst)
    			}
    			return nil
    		}
    	}
    
    	return sh.CopyFile(dst, src, perm, force)
    }
    
    // copyFile is like 'cp src dst'.
    func (sh *Shell) CopyFile(dst, src string, perm fs.FileMode, force bool) error {
    	if cfg.BuildN || cfg.BuildX {
    		sh.ShowCmd("", "cp %s %s", src, dst)
    		if cfg.BuildN {
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::CopyFile(const std::string& src,
                                       const std::string& target,
                                       TransactionToken* token) {
      if (ops_->copy_file == nullptr)
        return FileSystem::CopyFile(src, target, token);
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/classpath/CopyingClasspathFileTransformer.java

            File cachedFile = new File(cacheDir, "o_" + sourceSnapshot.getHash().toString() + '/' + source.getName());
            if (!cachedFile.isFile()) {
                // Just copy the jar
                GFileUtils.copyFile(source, cachedFile);
            }
            return cachedFile;
        }
    
        @Override
        public ClasspathFileHasher getFileHasher() {
            return FileSystemLocationSnapshot::getHash;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 20:14:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java

        }
    
        /**
         * If the destination file exists, then this method will overwrite it.
         *
         * @see FileUtils#copyFile(File, File)
         */
        public static void copyFile(File source, File destination) {
            logDeprecation();
            try {
                FileUtils.copyFile(source, destination);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/ClasspathElementTransformFactoryForLegacy.java

            }
    
            @Override
            public void transform(File destination) {
                LOGGER.debug("Archive '{}' rejected by policy. Skipping instrumentation.", source.getName());
                GFileUtils.copyFile(source, destination);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 08:02:27 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/internal/archive/archive_test.go

    		return err
    	}
    	entries, err := os.ReadDir(src)
    	if err != nil {
    		return err
    	}
    	for _, entry := range entries {
    		err = copyFile(filepath.Join(dst, entry.Name()), filepath.Join(src, entry.Name()))
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    func copyFile(dst, src string) (err error) {
    	var s, d *os.File
    	s, err = os.Open(src)
    	if err != nil {
    		return err
    	}
    	defer s.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 19:27:33 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      const std::string new_filepath = GetURIForPath("a_new_file");
      status = env_->CopyFile(filepath, new_filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "CopyFile() not supported: " << status;
    
      status = env_->FileExists(filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 20:25:58 UTC 2022
    - 71K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/cshared_test.go

    	tmpdir, err := os.MkdirTemp("", "cshared")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpdir)
    
    	copyFile(t, filepath.Join(tmpdir, "src", "testcshared", "go.mod"), "go.mod")
    	copyFile(t, filepath.Join(tmpdir, "src", "testcshared", "libgo", "libgo.go"), filepath.Join("libgo", "libgo.go"))
    	copyFile(t, filepath.Join(tmpdir, "src", "testcshared", "p", "p.go"), filepath.Join("p", "p.go"))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top