Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for isRegularFile (0.16 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/DefaultModelLocator.java

                project = locatePom(project);
            }
            if (Files.isDirectory(project)) {
                Path pom = project.resolve("pom.xml");
                return Files.isRegularFile(pom) ? pom : null;
            } else if (Files.isRegularFile(project)) {
                return project;
            } else {
                return null;
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

          assertFalse(MoreFiles.isRegularFile().apply(symlinkToDir));
    
          assertFalse(MoreFiles.isDirectory().apply(symlinkToFile));
          assertTrue(MoreFiles.isRegularFile().apply(symlinkToFile));
    
          assertFalse(MoreFiles.isDirectory(NOFOLLOW_LINKS).apply(symlinkToDir));
          assertFalse(MoreFiles.isRegularFile(NOFOLLOW_LINKS).apply(symlinkToFile));
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/MoreFilesTest.java

          assertFalse(MoreFiles.isRegularFile().apply(symlinkToDir));
    
          assertFalse(MoreFiles.isDirectory().apply(symlinkToFile));
          assertTrue(MoreFiles.isRegularFile().apply(symlinkToFile));
    
          assertFalse(MoreFiles.isDirectory(NOFOLLOW_LINKS).apply(symlinkToDir));
          assertFalse(MoreFiles.isRegularFile(NOFOLLOW_LINKS).apply(symlinkToFile));
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenInvoker.java

                            installationToolchainsFile != null && Files.isRegularFile(installationToolchainsFile)
                                    ? Source.fromPath(installationToolchainsFile)
                                    : null)
                    .userToolchainsSource(
                            userToolchainsFile != null && Files.isRegularFile(userToolchainsFile)
                                    ? Source.fromPath(userToolchainsFile)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/BaseMavenParser.java

            // maven.config; if exists
            Path mavenConfig = context.rootDirectory != null ? context.rootDirectory.resolve(".mvn/maven.config") : null;
            if (mavenConfig != null && Files.isRegularFile(mavenConfig)) {
                result.add(parseMavenConfigOptions(mavenConfig));
            }
            return result;
        }
    
        protected O parseMavenCliOptions(List<String> args) throws ParserException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                            // gathered with problem collector
                        }
                    }
                }
    
                private Model findRawModel(Path from, Path p) {
                    if (!Files.isRegularFile(p)) {
                        throw new IllegalArgumentException("Not a regular file: " + p);
                    }
    
                    if (!addEdge(from, p, problems)) {
                        return null;
                    }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

        }
    
        private File findInProjectLocalRepository(Artifact artifact) {
            Path target = getArtifactPath(artifact);
            return Files.isRegularFile(target) ? target.toFile() : null;
        }
    
        /**
         * We are interested in project success events, in which case we call
         * the {@link #installIntoProjectLocalRepository(MavenProject)} method.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvn/MavenInvokerTestSupport.java

        protected void invoke(Path cwd, Collection<String> goals) throws Exception {
            // works only in recent Maven4
            Assumptions.assumeTrue(
                    Files.isRegularFile(Paths.get(System.getProperty("maven.home"))
                            .resolve("conf")
                            .resolve("maven.properties")),
                    "${maven.home}/conf/maven.properties must be a file");
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

            Path pomPath = pomFile.resolveSibling(relativePath).normalize();
            if (Files.isDirectory(pomPath)) {
                pomPath = context.locate(pomPath);
            }
    
            if (pomPath == null || !Files.isRegularFile(pomPath)) {
                return Optional.empty();
            }
    
            Optional<RelativeProject> mappedProject = Optional.ofNullable(context.getRawModel(pomFile, pomPath.normalize()))
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

        for (classPathEntry in entries) {
          deployFile(classPathEntry.toPath())
        }
      }
    
      private fun RepositoryPlugin.deployFile(file: Path) {
        if (fileSystem.metadataOrNull(file)?.isRegularFile != true) return
        try {
          fileSystem.read(file) {
            put(inputStream(), RepositoryPlugin.PutOptions())
            println("Deployed ${file.name}")
          }
        } catch (e: IllegalArgumentException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top