Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 7b7c42b

Browse files
committed
Minor changes
1 parent 9df7769 commit 7b7c42b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/com/mathworks/ci/UseMatlabVersionBuildWrapper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
/**
44
* Copyright 2019-2020 The MathWorks, Inc.
5-
*
5+
*
66
* This class is BuildWrapper which accepts the "matlabroot" from user and updates the PATH varible with it.
77
* which could be later used across build.
8-
*
8+
*
99
*/
1010

1111
import java.io.File;
@@ -34,7 +34,7 @@
3434

3535
public class UseMatlabVersionBuildWrapper extends SimpleBuildWrapper {
3636

37-
private String matlabRootFolder;
37+
private String matlabRootFolder;
3838
private EnvVars env;
3939
private String matlabInstallationName;
4040

src/test/java/com/mathworks/ci/MatlabInstallationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ private MatlabInstallation setMatlabInstallation(String name, String home) {
8383
}
8484

8585
private MatlabInstallation[] getMatlabInstallation(){
86-
return matlabInstDescriptor.getInstallations();
86+
// static method to return all installations
87+
return MatlabInstallation.getAll();
8788
}
8889

8990
/*

0 commit comments

Comments
 (0)