Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for toAbsolutePath (0.08 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java

        public void addCompileSourceRoot(Project project, ProjectScope scope, Path sourceRoot) {
            MavenProject prj = getMavenProject(nonNull(project, "project"));
            String root = nonNull(sourceRoot, "sourceRoot").toAbsolutePath().toString();
            if (nonNull(scope, "scope") == ProjectScope.MAIN) {
                prj.addCompileSourceRoot(root);
            } else if (scope == ProjectScope.TEST) {
                prj.addTestCompileSourceRoot(root);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MoreFilesTest.java

        }
      }
    
      public void testCreateParentDirectories_relativePath() throws IOException {
        Path path = FS.getPath("nonexistent.file");
        assertNull(path.getParent());
        assertNotNull(path.toAbsolutePath().getParent());
        MoreFiles.createParentDirectories(path); // test that there's no exception
      }
    
      public void testCreateParentDirectories_noParentsNeeded() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        }
      }
    
      public void testCreateParentDirectories_relativePath() throws IOException {
        Path path = FS.getPath("nonexistent.file");
        assertNull(path.getParent());
        assertNotNull(path.toAbsolutePath().getParent());
        MoreFiles.createParentDirectories(path); // test that there's no exception
      }
    
      public void testCreateParentDirectories_noParentsNeeded() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/MoreFiles.java

        // file. getCanonicalFile() can at least get the canonical form of the part of the path which
        // actually exists and then append the normalized remainder of the path to that.
        Path normalizedAbsolutePath = path.toAbsolutePath().normalize();
        Path parent = normalizedAbsolutePath.getParent();
        if (parent == null) {
          // The given directory is a filesystem root. All zero of its ancestors exist. This doesn't
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/MoreFiles.java

        // file. getCanonicalFile() can at least get the canonical form of the part of the path which
        // actually exists and then append the normalized remainder of the path to that.
        Path normalizedAbsolutePath = path.toAbsolutePath().normalize();
        Path parent = normalizedAbsolutePath.getParent();
        if (parent == null) {
          // The given directory is a filesystem root. All zero of its ancestors exist. This doesn't
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top