mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-29 09:28:53 +00:00
Fixup #111 Document the number of utilized cores and use 1 core at least
This commit is contained in:

committed by
Guillaume Nodet

parent
1b18bd4a37
commit
59fc315777
@@ -234,7 +234,7 @@ public class DefaultClient implements Client {
|
||||
|
||||
static void setDefaultArgs(List<String> args) {
|
||||
if (args.stream().noneMatch(arg -> arg.startsWith("-T") || arg.equals("--threads"))) {
|
||||
int procs = Runtime.getRuntime().availableProcessors() - 1;
|
||||
final int procs = Math.max(Runtime.getRuntime().availableProcessors() - 1, 1);
|
||||
args.add("-T" + procs);
|
||||
}
|
||||
if (args.stream().noneMatch(arg -> arg.startsWith("-b") || arg.equals("--builder"))) {
|
||||
|
Reference in New Issue
Block a user