Skip to content

Commit e9bd72f

Browse files
committed
Merge branch 'env-java-home' into 'main'
Set java home from environment variable for discover if -java_home not specified See merge request weblogic-cloud/weblogic-deploy-tooling!1769
2 parents 2d76a20 + 46054a1 commit e9bd72f

File tree

2 files changed

+2
-6
lines changed
  • core/src/main/python
  • integration-tests/system-test/src/test/java/oracle/weblogic/deploy/integration

2 files changed

+2
-6
lines changed

core/src/main/python/discover.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def __process_java_home(optional_arg_map):
274274
java_home_name = optional_arg_map[CommandLineArgUtil.JAVA_HOME_SWITCH]
275275
else:
276276
java_home_name = env_helper.getenv('JAVA_HOME')
277+
optional_arg_map[CommandLineArgUtil.JAVA_HOME_SWITCH] = java_home_name
277278

278279
try:
279280
FileUtils.validateExistingDirectory(java_home_name)

integration-tests/system-test/src/test/java/oracle/weblogic/deploy/integration/ITWdt.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2024, Oracle and/or its affiliates.
2+
* Copyright (c) 2019, 2025, Oracle and/or its affiliates.
33
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55

@@ -1730,11 +1730,6 @@ private void verifyDiscoveredJDBCWalletModelFile(String expectedModelFile) throw
17301730
checkContents.add(" Name: domain2");
17311731
checkContents.add(" AdminServerName: admin-server");
17321732
checkContents.add(" ProductionModeEnabled: true");
1733-
checkContents.add(" NMProperties:");
1734-
1735-
// Don't include the JavaHome path in the check since it will vary when running system-tests locally...
1736-
//
1737-
checkContents.add(" JavaHome: ");
17381733
checkContents.add(" Server:");
17391734
checkContents.add(" admin-server: {}");
17401735
checkContents.add(" SecurityConfiguration:");

0 commit comments

Comments
 (0)