mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-28 08:47:29 +00:00
Improve environment defaults
This commit is contained in:
@@ -27,6 +27,7 @@ import java.util.Set;
|
||||
import javax.inject.Inject;
|
||||
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.jboss.fuse.mvnd.client.BuildProperties;
|
||||
import org.jboss.fuse.mvnd.client.Client;
|
||||
import org.jboss.fuse.mvnd.client.ClientOutput;
|
||||
import org.jboss.fuse.mvnd.client.DefaultClient;
|
||||
@@ -83,7 +84,7 @@ public class InstallDaemonNativeIT {
|
||||
PosixFilePermission.OTHERS_EXECUTE);
|
||||
}
|
||||
|
||||
final String version = DefaultClient.loadBuildProperties().getProperty("version");
|
||||
final String version = BuildProperties.getInstance().getVersion();
|
||||
Assertions.assertThat(mavenHome.resolve("lib/ext/mvnd-client-" + version + ".jar")).exists();
|
||||
Assertions.assertThat(mavenHome.resolve("lib/ext/mvnd-daemon-" + version + ".jar")).exists();
|
||||
}
|
||||
|
@@ -27,6 +27,7 @@ import java.util.Objects;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import org.jboss.fuse.mvnd.client.DefaultClient;
|
||||
import org.jboss.fuse.mvnd.client.BuildProperties;
|
||||
import org.jboss.fuse.mvnd.client.Client;
|
||||
import org.jboss.fuse.mvnd.client.DaemonInfo;
|
||||
import org.jboss.fuse.mvnd.client.DaemonRegistry;
|
||||
@@ -92,7 +93,7 @@ public class MvndTestExtension implements BeforeAllCallback, BeforeEachCallback,
|
||||
}
|
||||
f.set(testInstance, new NativeTestClient(resource.layout, mvndNativeExecutablePath, resource.timeoutMs));
|
||||
} else {
|
||||
f.set(testInstance, new DefaultClient(resource.layout));
|
||||
f.set(testInstance, new DefaultClient(() -> resource.layout, BuildProperties.getInstance()));
|
||||
}
|
||||
} else if (f.getType() == NativeTestClient.class) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user