Should support core extensions #114

This commit is contained in:
Guillaume Nodet
2020-11-02 14:04:00 +01:00
parent a95ac9e4dc
commit 39dff61060
13 changed files with 382 additions and 28 deletions

View File

@@ -39,6 +39,14 @@ public class DaemonCompatibilitySpec {
this.options = Objects.requireNonNull(options, "options");
}
public Path getJavaHome() {
return javaHome;
}
public List<String> getOptions() {
return options;
}
public Result isSatisfiedBy(DaemonInfo daemon) {
if (!javaHomeMatches(daemon)) {
return new Result(false, () -> "Java home is different.\n" + diff(daemon));

View File

@@ -57,7 +57,15 @@ public enum Environment {
* line.
*/
MVND_THREADS("mvnd.threads", null),
DAEMON_UID("daemon.uid", null);
DAEMON_UID("daemon.uid", null),
/**
* Internal option to specify the maven extension classpath
*/
DAEMON_EXT_CLASSPATH("daemon.ext.classpath", null),
/**
* Internal option to specify the list of maven extension to register
*/
DAEMON_CORE_EXTENSIONS("daemon.core.extensions", null);
public static final int DEFAULT_IDLE_TIMEOUT = (int) TimeUnit.HOURS.toMillis(3);