Skip to content

Commit

Permalink
Remove Node.js logic (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Mar 1, 2023
1 parent 095d861 commit d384542
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Stream;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.jenkins.tools.test.PluginCompatTester;
import org.jenkins.tools.test.exception.PomExecutionException;
Expand Down Expand Up @@ -207,28 +206,7 @@ private boolean isSnapshotMultiParentPlugin(
}

private File setupCompileResources(File path) {
LOGGER.log(Level.INFO, "Cleaning up node modules if necessary");
removeNodeFolders(path);
LOGGER.log(Level.INFO, "Plugin compilation log directory: {0}", path);
return new File(path + "/compilePluginLog.log");
}

private void removeNodeFolders(File path) {
File nodeFolder = new File(path, "node");
if (nodeFolder.exists() && nodeFolder.isDirectory()) {
try {
FileUtils.deleteDirectory(nodeFolder);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
File nodeModulesFolder = new File(path, "node_modules");
if (nodeModulesFolder.exists() && nodeModulesFolder.isDirectory()) {
try {
FileUtils.deleteDirectory(nodeFolder);
} catch (IOException e) {
throw new UncheckedIOException(e);
}
}
}
}

This file was deleted.

0 comments on commit d384542

Please sign in to comment.