src/Tools/Setup/isabelle/setup/Build.java
changeset 73964 c9771e1b3223
parent 73961 f090787bb4c4
child 73965 f6862d5f4e7f
equal deleted inserted replaced
73963:59b6f0462086 73964:c9771e1b3223
   163         }
   163         }
   164 
   164 
   165         public String shasum(String file)
   165         public String shasum(String file)
   166             throws IOException, NoSuchAlgorithmException, InterruptedException
   166             throws IOException, NoSuchAlgorithmException, InterruptedException
   167         {
   167         {
   168             return shasum(file, List.of(path(file)));
   168             Path path = path(file);
       
   169             if (Files.exists(path)) { return shasum(file, List.of(path)); }
       
   170             else {
       
   171                 throw new RuntimeException("Missing input file " + Environment.quote(path.toString()));
       
   172             }
   169         }
   173         }
   170     }
   174     }
   171 
   175 
   172 
   176 
   173     /** compile sources **/
   177     /** compile sources **/