Minor update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@173628 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2018-10-17 16:03:25 +00:00
parent 2a8fef0299
commit f65c879f18
2 changed files with 5 additions and 2 deletions

View File

@ -68,6 +68,7 @@ public class AlgorithmGenerator {
} }
private List<String> createJavaCode() { private List<String> createJavaCode() {
logger.debug("AlgorithmGenerator create Java Code");
String mainScriptRelativePath = retrieveMainScriptRelativePath(); String mainScriptRelativePath = retrieveMainScriptRelativePath();
String packageUrl = retrievePackageUrl(); String packageUrl = retrievePackageUrl();
enumUUID = new HashMap<>(); enumUUID = new HashMap<>();
@ -302,6 +303,7 @@ public class AlgorithmGenerator {
} }
private String retrieveAlgorithmDescription() { private String retrieveAlgorithmDescription() {
logger.debug("AlgorithmGenerator Create Description");
String algorithmDescription = ""; String algorithmDescription = "";
if (project.getInputData().getProjectInfo().getAlgorithmDescription() != null if (project.getInputData().getProjectInfo().getAlgorithmDescription() != null
@ -345,6 +347,7 @@ public class AlgorithmGenerator {
} }
} }
} }
logger.debug("Algorithm Description: "+algorithmDescription);
return algorithmDescription; return algorithmDescription;
} }

View File

@ -536,6 +536,7 @@ public class ProjectBuilder {
} }
private void createAlgorithm() throws StatAlgoImporterServiceException { private void createAlgorithm() throws StatAlgoImporterServiceException {
logger.debug("ProjectBuilder create algorithm");
AlgorithmGenerator algorithmGenerator = new AlgorithmGenerator(project, serviceCredentials); AlgorithmGenerator algorithmGenerator = new AlgorithmGenerator(project, serviceCredentials);
algorithmJava = algorithmGenerator.createAlgorithm(); algorithmJava = algorithmGenerator.createAlgorithm();
@ -551,8 +552,7 @@ public class ProjectBuilder {
String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(), codeSource.getId()); String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(), codeSource.getId());
codeSource.setPublicLink(pLink); codeSource.setPublicLink(pLink);
} catch (IOException e) { } catch (IOException e) {
logger.error(e.getLocalizedMessage()); logger.error(e.getLocalizedMessage(),e);
e.printStackTrace();
throw new StatAlgoImporterServiceException(e.getLocalizedMessage(), e); throw new StatAlgoImporterServiceException(e.getLocalizedMessage(), e);
} }