Skip to content

Commit 26a1f70

Browse files
authored
chore: update var names and add missing docs (#223)
Signed-off-by: Chao Wang <[email protected]>
1 parent 0e89dd1 commit 26a1f70

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ according to your preferences.
188188
* `EXHORT_DOCKER_PATH` : Specify the absolute path of `docker` executable.
189189
* `EXHORT_PODMAN_PATH` : Specify the absolute path of `podman` executable.
190190
* `EXHORT_IMAGE_PLATFORM` : Specify the platform used for multi-arch images.
191+
* `EXHORT_MVN_USER_SETTINGS` : Specify the absolute path to the Maven user settings file.
192+
* `EXHORT_MVN_LOCAL_REPO` : Specify the absolute path to the Maven local repository.
191193

192194
![ Animated screenshot showing the inline reporting feature of Image Analysis ](src/main/resources/images/image-analysis.gif)
193195

src/main/java/org/jboss/tools/intellij/exhort/ApiService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ private void setRequestProperties(final String manifestName) {
149149

150150
String userSettingsFile = MavenSettingsUtil.getUserSettingsFile();
151151
if (!userSettingsFile.isBlank()) {
152-
System.setProperty("EXHORT_MVN_USER_SETTINGS_FILE", userSettingsFile);
152+
System.setProperty("EXHORT_MVN_USER_SETTINGS", userSettingsFile);
153153
} else {
154-
System.clearProperty("EXHORT_MVN_USER_SETTINGS_FILE");
154+
System.clearProperty("EXHORT_MVN_USER_SETTINGS");
155155
}
156156

157157
String localRepository = MavenSettingsUtil.getLocalRepository();
158158
if (!localRepository.isBlank()) {
159-
System.setProperty("EXHORT_MVN_LOCAL_REPOSITORY", localRepository);
159+
System.setProperty("EXHORT_MVN_LOCAL_REPO", localRepository);
160160
} else {
161-
System.clearProperty("EXHORT_MVN_LOCAL_REPOSITORY");
161+
System.clearProperty("EXHORT_MVN_LOCAL_REPO");
162162
}
163163

164164
if (settings.gradlePath != null && !settings.gradlePath.isBlank()) {

0 commit comments

Comments
 (0)