- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for toPath (0.32 sec)
-
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
reports.filter { it.isDirectory }.forEach { val destFile = rootBuildDir.resolve("report$projectPathName-${it.name}.zip") zip(destFile, it) } // Zip all files in project build directory into a single zip file to avoid publishing too many tiny files reports.filter { it.isFile && it.toPath().startsWith(projectBuildDirPath) }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Nov 05 11:43:49 UTC 2025 - 12.5K bytes - Viewed (1) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
/** * Test isPathSafe with safe path * * @throws Exception */ @Test public void testIsPathSafe_SafePath() throws Exception { final Path baseDir = tempFolder.getRoot().toPath(); final Path safePath = baseDir.resolve("subdir/file.txt"); assertTrue("Safe path should be allowed", FileUtil.isPathSafe(safePath, baseDir)); } /**Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/ArtifactDeployerTest.java
Artifact artifact = createArtifact("artifact", "1.0"); File file = new File(artifactBasedir, "artifact-1.0.jar"); assertEquals("dummy", new String(Files.readAllBytes(file.toPath()), StandardCharsets.UTF_8).trim()); artifactDeployer.deploy(file, artifact, remoteRepository(), localRepository()); ArtifactRepository remoteRepository = remoteRepository();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 2.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java
*/ protected FileOwnerAttributeView parseFileOwnerAttribute(final ResponseData responseData, final File file) { try { final FileOwnerAttributeView ownerAttrView = Files.getFileAttributeView(file.toPath(), FileOwnerAttributeView.class); if (ownerAttrView != null) { final UserPrincipal owner = ownerAttrView.getOwner(); if (owner != null) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 15.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
ResponseData data = new ResponseData(); File tempFile = File.createTempFile("test", ".txt"); try { String content = "File content"; Files.write(tempFile.toPath(), content.getBytes(StandardCharsets.UTF_8)); data.setResponseBody(tempFile, false); assertTrue(data.hasResponseBody()); assertNotNull(data.getResponseBody());
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 13 13:29:22 UTC 2025 - 14.3K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
String parentContent = new String(Files.readAllBytes(parent.toPath()), StandardCharsets.UTF_8); parentContent = parentContent.replace( "<packaging>pom</packaging>", "<packaging>pom</packaging><properties><addedProperty>addedValue</addedProperty></properties>"); Files.write(parent.toPath(), parentContent.getBytes(StandardCharsets.UTF_8)); // re-build pom with modified parent
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 17.6K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/repository/TestRepositoryConnector.java
try { Path dest = download.getPath(); Files.createDirectories(dest.getParent()); Files.copy(remoteFile.toPath(), dest); } catch (IOException e) { if (!remoteFile.exists()) { download.setException(new ArtifactNotFoundException(download.getArtifact(), repository));Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 11 17:20:46 UTC 2025 - 5.6K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
import okhttp3.Dns import okhttp3.EventRecorder import okhttp3.OkHttpClient import okhttp3.Protocol import okhttp3.testing.PlatformRule import okio.Buffer import okio.ByteString.Companion.decodeHex import okio.Path.Companion.toPath import okio.fakefilesystem.FakeFileSystem import org.junit.jupiter.api.Assertions.fail import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Tag import org.junit.jupiter.api.Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 11.9K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java
Path path = fs.getPath("projects", "pom-with-profiles", "pom.xml"); Files.createDirectories(path.getParent()); Files.copy(testPom.toPath(), path); ModelSource source = Sources.buildSource(path); ProjectBuildingRequest request = newBuildingRequest(); request.setLocalRepository(getLocalRepository());
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 17:20:31 UTC 2025 - 33.7K bytes - Viewed (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsReader.java
@Override public Settings read(File input, Map<String, ?> options) throws IOException { Objects.requireNonNull(input, "input cannot be null"); try (InputStream in = Files.newInputStream(input.toPath())) { InputSource source = InputSource.of(input.toString()); return new Settings(new SettingsStaxReader().read(in, isStrict(options), source)); } catch (XMLStreamException e) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 3.6K bytes - Viewed (0)