Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 139 for isFile (0.1 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            if (installationToolchainsFile != null && installationToolchainsFile.isFile()) {
                toolchainsRequest.setGlobalToolchainsSource(new FileSource(installationToolchainsFile));
            }
            if (userToolchainsFile != null && userToolchainsFile.isFile()) {
                toolchainsRequest.setUserToolchainsSource(new FileSource(userToolchainsFile));
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  2. build-logic/buildquality/src/test/kotlin/gradlebuild/testcleanup/TestFilesCleanupServiceTest.kt

            }
        }
    
        private
        fun assertLeftoverFilesCleanedUpEventually(vararg leftoverFiles: String) {
            leftoverFiles.forEach {
                assertTrue(projectDir.resolve(it).walk().filter { it.isFile }.toList().isEmpty())
            }
        }
    
        @Test
        fun `fail build if leftover file found and test passes`() {
            val result = run(":successful-test-with-leftover:test", "--no-watch-fs").buildAndFail()
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Jun 14 12:35:52 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

                    responseData.setHttpStatusCode(Constants.NOT_FOUND_STATUS_CODE);
                    responseData.setCharSet(charset);
                    responseData.setContentLength(0);
                } else if (file.isFile()) {
                    // check file size
                    responseData.setContentLength(file.length());
                    checkMaxContentLength(responseData);
    
                    parseFileOwnerAttribute(responseData, file);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/thumbnail/impl/CommandGenerator.java

                        cmdList.add(expandPath(value.replace("${url}", tempPath).replace("${outputFile}", outputPath)));
                    }
    
                    executeCommand(thumbnailId, cmdList);
    
                    if (outputFile.isFile() && outputFile.length() == 0) {
                        logger.warn("Thumbnail File is empty. ID is {}", thumbnailId);
                        if (outputFile.delete()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/thumbnail/impl/BaseThumbnailGenerator.java

                        logger.debug("generator path: {}", s);
                    }
                    return s;
                }).allMatch(s -> {
                    final boolean found = new File(s).isFile();
                    if (found && logger.isDebugEnabled()) {
                        logger.debug("{} is found.", s);
                    }
                    return found;
                });
            } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                    responseData.setHttpStatusCode(Constants.NOT_FOUND_STATUS_CODE);
                    responseData.setCharSet(charset);
                    responseData.setContentLength(0);
                } else if (file.isFile()) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Checking SmbFile Size: {}", filePath);
                    }
                    responseData.setContentLength(file.length());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            if (pluginFile == null) {
                throw new IllegalStateException("plugin main artifact has not been resolved for " + getId());
            }
    
            if (pluginFile.isFile()) {
                try {
                    return new URL("jar:" + pluginFile.toURI() + "!/" + descriptor).openStream();
                } catch (MalformedURLException e) {
                    throw new IllegalStateException(e);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java

                    responseData.setHttpStatusCode(Constants.NOT_FOUND_STATUS_CODE);
                    responseData.setCharSet(charset);
                    responseData.setContentLength(0);
                } else if (file.isFile()) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Checking SmbFile Size: {}", filePath);
                    }
                    responseData.setContentLength(file.length());
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. compat/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
Back to top