Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculateSha256Sum (0.15 sec)

  1. platforms/core-runtime/wrapper-shared/src/test/groovy/org/gradle/wrapper/InstallTest.groovy

        @Shared String templateEvalZipHash
    
        void setupSpec() {
            createTestZip(templateZipFile)
            templateZipHash = Install.calculateSha256Sum(templateZipFile)
            createEvilZip(templateEvalZipFile)
            templateEvalZipHash = Install.calculateSha256Sum(templateEvalZipFile)
        }
    
        void setup() {
            initConfiguration()
    
            testDir = temporaryFolder.testDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

            if(localTargetFile.exists()) {
                localTargetFile.delete();
            }
            tempDownloadFile.renameTo(localTargetFile);
        }
    
        static String calculateSha256Sum(File file) throws Exception {
            MessageDigest md = MessageDigest.getInstance("SHA-256");
            InputStream fis = new FileInputStream(file);
            try {
                int n = 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top