Fixing the way StubRunnerBuilder options are built

without this change we're completely ignoring the option of using system properties to set the stub runner builder options
with this change we set it up with defaults from system properties and then we override it with the user's code

fixes #462
This commit is contained in:
Marcin Grzejszczak
2017-11-23 11:53:15 +01:00
parent 0358629a1e
commit 4c073c8a52
4 changed files with 58 additions and 20 deletions

View File

@@ -114,6 +114,7 @@ class MavenContractsDownloader {
StubRunnerOptions buildOptions() {
return new StubRunnerOptionsBuilder()
.withOptions(StubRunnerOptions.fromSystemProps())
.withStubRepositoryRoot(this.contractsRepositoryUrl)
.withWorkOffline(this.contractsWorkOffline)
.build();