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

Commit 7317337

Browse files
authored
Update MatlabBuild.java
1 parent 5ad87bf commit 7317337

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public interface MatlabBuild {
2222
* This Method decorates the launcher with MATLAB command provided and returns the Process
2323
* object to launch MATLAB with appropriate startup options like -r or -batch
2424
*
25-
* @param workspace Current build workspace
25+
* @param workspace Current build workspace
2626
* @param launcher Current build launcher
27-
* @param listener Current build listener
28-
* @param envVars Environment variables of the current build
27+
* @param listener Current build listener
28+
* @param envVars Environment variables of the current build
2929
* @param matlabCommand MATLAB command to execute on shell
3030
* @return matlabLauncher returns the process launcher to run MATLAB commands
3131
*/
@@ -82,7 +82,7 @@ default FilePath getFilePathForUniqueFolder(Launcher launcher, String uniqueName
8282
default String getUniqueNameForRunnerFile() {
8383
//Using 8 bit long random alphanumeric string
8484
return RandomStringUtils.randomAlphanumeric(8);
85-
}
85+
}
8686

8787
// This method prepares the temp folder by coping all helper files in it.
8888
default void prepareTmpFldr(FilePath tmpFldr, String runnerScript) throws IOException, InterruptedException {
@@ -99,6 +99,7 @@ default void prepareTmpFldr(FilePath tmpFldr, String runnerScript) throws IOExce
9999
scriptFile.write(runnerScript, "UTF-8");
100100
}
101101

102+
//This method replaces the placeholder with genscript's zip file location URL in temp folder
102103
default String replaceZipPlaceholder(String script, String url) {
103104
script = script.replace("${ZIP_FILE}", url);
104105
return script;

0 commit comments

Comments
 (0)