From 5c827bdb3315b2b562b7b26582f849073d1bb1e7 Mon Sep 17 00:00:00 2001 From: Evgenii Grigorev Date: Sun, 21 Jul 2024 22:43:02 +0200 Subject: [PATCH] [#227] Fixed script no updating on change --- .../spipes/manager/SPipesScriptManager.java | 2 +- .../spipes/rest/SPipesServiceController.java | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/s-pipes-core/src/main/java/cz/cvut/spipes/manager/SPipesScriptManager.java b/s-pipes-core/src/main/java/cz/cvut/spipes/manager/SPipesScriptManager.java index 0121ef6d..d8b6d1a0 100644 --- a/s-pipes-core/src/main/java/cz/cvut/spipes/manager/SPipesScriptManager.java +++ b/s-pipes-core/src/main/java/cz/cvut/spipes/manager/SPipesScriptManager.java @@ -88,7 +88,7 @@ public Module loadModule(final String moduleId, // TODO check moduleTypeUri - return PipelineFactory.loadPipeline(scriptsRepository.getResource(resourceUri, resourceContextUri)); + return PipelineFactory.loadModule(scriptsRepository.getResource(resourceUri, resourceContextUri)); } public Module loadFunction(String functionId) { diff --git a/s-pipes-web/src/main/java/cz/cvut/spipes/rest/SPipesServiceController.java b/s-pipes-web/src/main/java/cz/cvut/spipes/rest/SPipesServiceController.java index 8feec825..2a04a884 100644 --- a/s-pipes-web/src/main/java/cz/cvut/spipes/rest/SPipesServiceController.java +++ b/s-pipes-web/src/main/java/cz/cvut/spipes/rest/SPipesServiceController.java @@ -27,9 +27,7 @@ import org.springframework.web.multipart.MultipartFile; import org.springframework.web.servlet.config.annotation.EnableWebMvc; -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; +import java.io.*; import java.net.URL; import java.util.*; import java.util.stream.Collectors; @@ -222,7 +220,13 @@ private Model runModule(final Model inputDataModel, final MultiValueMap