Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for asFile (0.11 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InProcessGradleExecuter.java

                return true;
            }
            File daemonJvmProperties = new File(getWorkingDir(), "gradle/gradle-daemon-jvm.properties");
            if (daemonJvmProperties.isFile()) {
                Properties properties = GUtil.loadProperties(daemonJvmProperties);
                String requestedVersion = properties.getProperty("toolchainVersion");
                if (requestedVersion != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/project/DeclarativeDslProjectBuildFileIntegrationSpec.groovy

            file("sub/build.gradle.dcl") << ""
    
            when:
            run(":help")
    
            then:
            [
                file(".gradle/declarative-schema/project.dcl.schema"),
            ].every { it.isFile() && it.text != "" }
        }
    
        def 'can configure a custom plugin extension in declarative DSL for a plugin written in #language'() {
            given:
            file("build-logic/build.gradle.kts") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top