equal
deleted
inserted
replaced
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 **/ |