- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 183 for toPath (0.07 seconds)
-
src/main/java/org/codelibs/fess/ds/DataStoreFactory.java
return nameSet.stream().sorted().collect(Collectors.toList()); } for (final File jarFile : jarFiles) { try (FileSystem fs = FileSystems.newFileSystem(jarFile.toPath(), ClassLoader.getSystemClassLoader())) { final Path xmlPath = fs.getPath("fess_ds++.xml"); if (!Files.exists(xmlPath)) { if (logger.isDebugEnabled()) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 9K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java
File exclusionsFile = getParameters().getExclusionsFile(); if (exclusionsFile.exists()) { try { return Files.readAllLines(exclusionsFile.toPath()) .stream() .map(String::trim) .filter(line -> (line.isEmpty() || line.startsWith("#")) == false) .collect(Collectors.toList());
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 14.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalBwcGitPlugin.java
); } private void writeFile(File file, String content) { try { Files.writeString(file.toPath(), content, CREATE, TRUNCATE_EXISTING); } catch (IOException e) { throw new UncheckedIOException(e); } } private String execInCheckoutDir(Action<ExecSpec> execSpecConfig) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 9.9K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
} } private String getPackageName(File file) throws IOException { try (Stream<String> lines = Files.lines(file.toPath())) { String packageLine = lines.filter(line -> line.startsWith("package")) .findFirst() .orElseThrow(() -> new IOException("Can't find package definition in file " + file));Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Mar 01 05:52:34 GMT 2026 - 11.6K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
String content = "File-based content test"; java.io.File tmpFile = java.io.File.createTempFile("response-test-", ".tmp"); tmpFile.deleteOnExit(); java.nio.file.Files.write(tmpFile.toPath(), content.getBytes(java.nio.charset.StandardCharsets.UTF_8)); CurlResponse response = new CurlResponse(); response.setEncoding("UTF-8"); response.setContentCache(new ContentCache(tmpFile));
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBrokenInternalLinks.java
} } private boolean fileContainsText(File referencedFile, String text) { try { for (String line : Files.readAllLines(referencedFile.toPath())) { if (line.contains(text)) { return true; } } } catch (IOException e) { // ignore } return false;Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Mar 12 23:22:57 GMT 2026 - 12.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/LicenseAnalyzer.java
public String getIdentifier() { return identifier; } public boolean matches(File licenseFile) { try { String content = Files.readString(licenseFile.toPath()).replaceAll("\\*", " "); return pattern.matcher(content).find(); } catch (IOException e) { throw new UncheckedIOException(e); } } }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jul 27 00:12:58 GMT 2021 - 12.8K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java
// path to pom.xml File currentPom = project.getFile(); if (currentPom != null) { MavenSession session = event.getSession(); Path current = currentPom.toPath().toAbsolutePath().normalize(); Path topDirectory = session.getTopDirectory(); if (topDirectory != null && current.startsWith(topDirectory)) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Dec 13 15:40:45 GMT 2024 - 17.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
import okhttp3.tls.HeldCertificate import okio.Buffer import okio.BufferedSink import okio.ByteString import okio.ForwardingSource import okio.GzipSink import okio.Path.Companion.toPath import okio.buffer import okio.fakefilesystem.FakeFileSystem import okio.use import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assertions.assertArrayEquals
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/ExecJobTest.java
assertTrue(propFile.exists()); // Read and verify properties Properties props = new Properties(); try (var in = Files.newInputStream(propFile.toPath())) { props.load(in); // The property should be in the file if it was in system properties String value = props.getProperty("test.prop"); if (value == null) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 24.8K bytes - Click Count (0)