@@ -69,7 +69,7 @@ class BuildExecutor {
|
|||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
this.mavenProperties = mavenProperties;
|
this.mavenProperties = mavenProperties;
|
||||||
|
|
||||||
if (this.mavenProperties.isParllelize()) {
|
if (this.mavenProperties.isParallelize()) {
|
||||||
int processors = Runtime.getRuntime().availableProcessors();
|
int processors = Runtime.getRuntime().availableProcessors();
|
||||||
int parallelity = Math.max(2, (processors / 2));
|
int parallelity = Math.max(2, (processors / 2));
|
||||||
executor = new ThreadPoolExecutor(parallelity, parallelity, 10, TimeUnit.MINUTES, new ArrayBlockingQueue<>(256));
|
executor = new ThreadPoolExecutor(parallelity, parallelity, 10, TimeUnit.MINUTES, new ArrayBlockingQueue<>(256));
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class MavenProperties {
|
|||||||
private File localRepository;
|
private File localRepository;
|
||||||
private Map<String, String> plugins;
|
private Map<String, String> plugins;
|
||||||
private boolean consoleLogger = true;
|
private boolean consoleLogger = true;
|
||||||
private boolean parllelize = false;
|
private boolean parallelize = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures the local Maven repository location to use. In case the given folder does not already exists it's
|
* Configures the local Maven repository location to use. In case the given folder does not already exists it's
|
||||||
|
|||||||
Reference in New Issue
Block a user