Skip to content

Commit 373cb3d

Browse files
committed
parallelism 64 added in run.groovy
1 parent fbe298f commit 373cb3d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

run.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import org.scm4j.releaser.cli.CLI;
55

66
class CLIRunner {
77
static void main(args) {
8+
System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism", "64");
89
System.exit(new CLI().exec(args));
910
}
1011
}

src/main/java/org/scm4j/releaser/cli/CLI.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package org.scm4j.releaser.cli;
22

3+
import java.io.PrintStream;
4+
35
import org.apache.commons.lang3.ArrayUtils;
46
import org.scm4j.commons.progress.IProgress;
57
import org.scm4j.commons.progress.ProgressConsole;
@@ -11,10 +13,11 @@
1113
import org.scm4j.releaser.actions.PrintStatus;
1214
import org.scm4j.releaser.conf.Component;
1315
import org.scm4j.releaser.exceptions.EReleaserException;
14-
import org.scm4j.releaser.exceptions.cmdline.*;
15-
16-
import java.io.PrintStream;
17-
import java.util.concurrent.ForkJoinPool;
16+
import org.scm4j.releaser.exceptions.cmdline.ECmdLine;
17+
import org.scm4j.releaser.exceptions.cmdline.ECmdLineNoCommand;
18+
import org.scm4j.releaser.exceptions.cmdline.ECmdLineNoProduct;
19+
import org.scm4j.releaser.exceptions.cmdline.ECmdLineUnknownCommand;
20+
import org.scm4j.releaser.exceptions.cmdline.ECmdLineUnknownOption;
1821

1922
public class CLI {
2023
public static final int EXIT_CODE_OK = 0;
@@ -91,7 +94,6 @@ protected IAction getTagAction(CommandLine cmd) {
9194
public int exec(String[] args) {
9295
try {
9396
out.println("scm4j-releaser " + CLI.class.getPackage().getSpecificationVersion());
94-
out.println("parallelism: " + ForkJoinPool.commonPool().getParallelism());
9597
long startMS = System.currentTimeMillis();
9698
CommandLine cmd = new CommandLine(args);
9799
validateCommandLine(cmd);

0 commit comments

Comments
 (0)