Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readAllBytes (0.21 sec)

  1. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

                tempChecksumFile.deleteOnExit();
                wagon.get(remotePath + checksumFileExtension, tempChecksumFile);
                byte[] bytes = Files.readAllBytes(tempChecksumFile.toPath());
                String expectedChecksum = new String(bytes, StandardCharsets.UTF_8);
    
                // remove whitespaces at the end
                expectedChecksum = expectedChecksum.trim();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
Back to top