Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for deleteIfExists (0.07 sec)

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

            String result;
            Path src = sourcePathProvider.get();
            if (src == null) {
                Files.deleteIfExists(target);
                result = null;
            } else if (!Files.exists(src)) {
                Files.deleteIfExists(target);
                result = "";
            } else {
                String current = sha1(src);
                String existing = sourceState.get();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/MoreFilesTest.java

              new SimpleFileVisitor<Path>() {
                @Override
                public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
                    throws IOException {
                  Files.deleteIfExists(file);
                  return FileVisitResult.CONTINUE;
                }
    
                @Override
                public FileVisitResult postVisitDirectory(Path dir, IOException exc)
                    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. impl/maven-core/src/main/java/org/apache/maven/execution/DefaultBuildResumptionDataRepository.java

        @Override
        public void removeResumptionData(MavenProject rootProject) {
            Path resumeProperties = Paths.get(rootProject.getBuild().getDirectory(), RESUME_PROPERTIES_FILENAME);
            try {
                Files.deleteIfExists(resumeProperties);
            } catch (IOException e) {
                LOGGER.warn("Could not delete {} file. ", RESUME_PROPERTIES_FILENAME, e);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

                  Files.deleteIfExists(file);
                  return FileVisitResult.CONTINUE;
                }
    
                @Override
                public FileVisitResult postVisitDirectory(Path dir, IOException exc)
                    throws IOException {
                  if (exc != null) {
                    return FileVisitResult.TERMINATE;
                  }
                  Files.deleteIfExists(dir);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top