exceptions.add(executeProcessAsyncron(cdl, manifest,
processDescription, vfs, targetDir, resolver, version));
}
cdl.await(5, TimeUnit.MINUTES);
} catch (final InterruptedException e) {
throw new SmallerException("Failed to process smaller request", e);
}
for (final AtomicReference<Exception> exception : exceptions) {
if (exception.get() != null) {
final Exception e = exception.get();
if (e instanceof SmallerException) {
throw (SmallerException) e;
} else if (e instanceof IOException) {
throw (IOException) e;
}
throw new SmallerException("Failed to execute smaller process", e);
}
}
writeResults(vfs, targetDir, manifest);
}