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

Commit 0a68aff

Browse files
authored
Update MatlabBuild.java
1 parent 9b98d41 commit 0a68aff

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import java.io.IOException;
1010
import java.io.InputStream;
11-
import java.net.URL;
1211
import org.apache.commons.lang.RandomStringUtils;
1312
import hudson.EnvVars;
1413
import hudson.FilePath;
@@ -25,7 +24,7 @@ public interface MatlabBuild {
2524
* @param workspace Current build workspace
2625
* @param launcher Current build launcher
2726
* @param listener Current build listener
28-
* @param envVars Environment variables of the current build
27+
* @param envVars Environment variables of the current build
2928
* @param matlabCommand MATLAB command to execute on shell
3029
* @return matlabLauncher returns the process launcher to run MATLAB commands
3130
*/
@@ -87,10 +86,10 @@ default String getUniqueNameForRunnerFile() {
8786
// This method prepares the temp folder by coping all helper files in it.
8887
default void prepareTmpFldr(FilePath tmpFldr, String runnerScript) throws IOException, InterruptedException {
8988
// copy genscript package
90-
copyFileInWorkspace(MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR,
91-
MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR, tmpFldr);
92-
FilePath zipFileLocation =
93-
new FilePath(tmpFldr, MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR);
89+
copyFileInWorkspace(MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR,
90+
MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR, tmpFldr);
91+
FilePath zipFileLocation =
92+
new FilePath(tmpFldr, MatlabBuilderConstants.MATLAB_SCRIPT_GENERATOR);
9493
runnerScript=replaceZipPlaceholder(runnerScript, zipFileLocation.getRemote());
9594

9695
// Write MATLAB scratch file in temp folder.

0 commit comments

Comments
 (0)