Skip to content

Commit

Permalink
test: fix and tailor tests also for new java versions
Browse files Browse the repository at this point in the history
Signed-off-by: Zvi Grinberg <zgrinber@redhat.com>
  • Loading branch information
zvigrinberg committed Mar 5, 2024
1 parent 0ee53d3 commit f346768
Show file tree
Hide file tree
Showing 15 changed files with 2,037 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.github.packageurl.PackageURL;
import com.redhat.exhort.Api;
import com.redhat.exhort.Provider;
import com.redhat.exhort.impl.ExhortApi;
import com.redhat.exhort.logging.LoggersFactory;
import com.redhat.exhort.sbom.Sbom;
import com.redhat.exhort.sbom.SbomFactory;
Expand Down Expand Up @@ -469,7 +470,7 @@ private List<DependencyAggregator> getDependencies(final Path manifestPath) thro
}

private Map<String, String> getMvnExecEnvs() {
var javaHome = System.getProperty("JAVA_HOME");
var javaHome = ExhortApi.getStringValueEnvironment("JAVA_HOME","");
if (javaHome != null && !javaHome.isBlank()) {
return Collections.singletonMap("JAVA_HOME", javaHome);
}
Expand Down
Loading

0 comments on commit f346768

Please sign in to comment.