Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 113 for asFile (0.17 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

        public static void touchExisting(File file) {
            try {
                Files.setLastModifiedTime(file.toPath(), FileTime.fromMillis(System.currentTimeMillis()));
            } catch (IOException e) {
                if (file.isFile() && file.length() == 0) {
                    // On Linux, users cannot touch files they don't own but have write access to
                    // because the JDK uses futimes() instead of futimens() [note the 'n'!]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java

                Versions versions,
                org.eclipse.aether.metadata.Metadata metadata,
                ArtifactRepository repository) {
            if (metadata != null && metadata.getFile() != null && metadata.getFile().isFile()) {
                try {
                    Map<String, ?> options = Collections.singletonMap(MetadataReader.IS_STRICT, Boolean.FALSE);
    
                    Metadata repoMetadata = metadataReader.read(metadata.getFile(), options);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 09 20:17:59 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/go/build/build.go

    	}
    
    	f, err := os.Open(path)
    	if err != nil {
    		return nil, err // nil interface
    	}
    	return f, nil
    }
    
    // isFile determines whether path is a file by trying to open it.
    // It reuses openFile instead of adding another function to the
    // list in Context.
    func (ctxt *Context) isFile(path string) bool {
    	f, err := ctxt.openFile(path)
    	if err != nil {
    		return false
    	}
    	f.Close()
    	return true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            PluginDescriptor pluginDescriptor = null;
    
            File pluginFile = pluginArtifact.getFile();
    
            try {
                if (pluginFile.isFile()) {
                    try (JarFile pluginJar = new JarFile(pluginFile, false)) {
                        ZipEntry pluginDescriptorEntry = pluginJar.getEntry(getPluginDescriptorLocation());
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

      toco_log_after.SerializeToOstream(&ostream_after);
      ostream_after.close();
      toco::LogDump(toco::kLogLevelModelChanged, "tflite_graph", *flatbuffer_model);
    }
    
    // NOTE(aselle): We are using raw PyObject's here because we want to make
    // sure we input and output bytes rather than unicode strings for Python3.
    PyObject* Convert(PyObject* model_flags_proto_txt_raw,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClient.java

            candidates.add(new File(diagnostics.getDaemonLog().getParent(), crashLogFileName));
            findCrashLogFile(crashLogFileName).ifPresent(candidates::add);
    
            return candidates.stream()
                .filter(File::isFile)
                .findFirst();
        }
    
        private static Optional<File> findCrashLogFile(String crashLogFileName) {
            // This use case for the JavaIOTmpDir is allowed since we are looking for the crash log file.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. cmd/utils.go

    		// Upon error just return Go-syntax representation of the value
    		return fmt.Sprintf("%#v", req)
    	}
    
    	// Formatted string.
    	return strings.TrimSpace(buffer.String())
    }
    
    // isFile - returns whether given path is a file or not.
    func isFile(path string) bool {
    	if fi, err := os.Stat(path); err == nil {
    		return fi.Mode().IsRegular()
    	}
    
    	return false
    }
    
    // UTCNow - returns current UTC time.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 22:00:34 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " not found in path: " + systemFile, artifact);
                }
    
                if (!systemFile.isFile()) {
                    throw new ArtifactNotFoundException(
                            "System artifact: " + artifact + " is not a file: " + systemFile, artifact);
                }
    
                artifact.setResolved(true);
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/ReactorReader.java

            return artifacts.map(RepositoryUtils::toArtifact);
        }
    
        private boolean isRegularFile(Artifact artifact) {
            return artifact.getFile() != null && artifact.getFile().isFile();
        }
    
        private void installIntoProjectLocalRepository(Artifact artifact) {
            Path target = getArtifactPath(artifact);
            try {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  10. src/cmd/dist/build.go

    	if b == "" {
    		b = "power8"
    	}
    	goppc64 = b
    
    	b = os.Getenv("GORISCV64")
    	if b == "" {
    		b = "rva20u64"
    	}
    	goriscv64 = b
    
    	if p := pathf("%s/src/all.bash", goroot); !isfile(p) {
    		fatalf("$GOROOT is not set correctly or not exported\n"+
    			"\tGOROOT=%s\n"+
    			"\t%s does not exist", goroot, p)
    	}
    
    	b = os.Getenv("GOHOSTARCH")
    	if b != "" {
    		gohostarch = b
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top