Skip to content

Commit 5ff8dec

Browse files
committed
Update copyright
Signed-off-by: Scott Kurz <skurz@us.ibm.com>
1 parent c259e1b commit 5ff8dec

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

bundles/io.openliberty.tools.eclipse.ui/src/io/openliberty/tools/eclipse/CommandBuilder.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2022, 2023 IBM Corporation and others.
2+
* Copyright (c) 2022, 2025 IBM Corporation and others.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
@@ -147,14 +147,14 @@ private String getCommandFromWrapper() {
147147

148148
private String getCommandFromPreferences() throws IllegalStateException {
149149

150-
String installLocPref = getInstallLocationPreferenceString();
151-
if (installLocPref == null || installLocPref.isBlank() || installLocPref.isEmpty()) {
152-
if (Trace.isEnabled()) {
153-
Trace.getTracer().trace(Trace.TRACE_TOOLS, "The mvn/gradle preference path: " + installLocPref + " was null, blank, or empty");
154-
}
155-
return null;
156-
}
157-
150+
String installLocPref = getInstallLocationPreferenceString();
151+
if (installLocPref == null || installLocPref.isBlank() || installLocPref.isEmpty()) {
152+
if (Trace.isEnabled()) {
153+
Trace.getTracer().trace(Trace.TRACE_TOOLS, "The mvn/gradle preference path: " + installLocPref + " was null, blank, or empty");
154+
}
155+
return null;
156+
}
157+
158158
File tempCmdFile = new File(installLocPref + File.separator + "bin" + File.separator + getExecBaseName());
159159
String cmdPathStr = tempCmdFile.getPath();
160160

@@ -187,9 +187,9 @@ private String getCommandFromPathEnvVar() throws IllegalStateException {
187187

188188
String[] pathMembers = pathEnv.split(File.pathSeparator);
189189
for (String member : pathMembers) {
190-
if (member.isBlank() || member.isEmpty()) {
191-
continue;
192-
}
190+
if (member.isBlank() || member.isEmpty()) {
191+
continue;
192+
}
193193
File tempFile = new File(member + File.separator + executableBaseName);
194194
if (tempFile.exists()) {
195195
foundCmd = tempFile.getPath();

0 commit comments

Comments
 (0)