Пример #1
0
 Tuple<URL, Path> newChecksumUrlAndFile(Environment env, URL originalUrl, String suffix)
     throws IOException {
   URL newUrl = new URL(originalUrl.toString() + "." + suffix);
   return new Tuple<>(newUrl, Files.createTempFile(env.tmpFile(), name, ".zip." + suffix));
 }
Пример #2
0
 Path newDistroFile(Environment env) throws IOException {
   return Files.createTempFile(env.tmpFile(), name, ".zip");
 }