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:
parent
2a8fef0299
commit
f65c879f18
|
@ -68,6 +68,7 @@ public class AlgorithmGenerator {
|
|||
}
|
||||
|
||||
private List<String> createJavaCode() {
|
||||
logger.debug("AlgorithmGenerator create Java Code");
|
||||
String mainScriptRelativePath = retrieveMainScriptRelativePath();
|
||||
String packageUrl = retrievePackageUrl();
|
||||
enumUUID = new HashMap<>();
|
||||
|
@ -302,6 +303,7 @@ public class AlgorithmGenerator {
|
|||
}
|
||||
|
||||
private String retrieveAlgorithmDescription() {
|
||||
logger.debug("AlgorithmGenerator Create Description");
|
||||
String algorithmDescription = "";
|
||||
|
||||
if (project.getInputData().getProjectInfo().getAlgorithmDescription() != null
|
||||
|
@ -345,6 +347,7 @@ public class AlgorithmGenerator {
|
|||
}
|
||||
}
|
||||
}
|
||||
logger.debug("Algorithm Description: "+algorithmDescription);
|
||||
return algorithmDescription;
|
||||
}
|
||||
|
||||
|
|
|
@ -536,6 +536,7 @@ public class ProjectBuilder {
|
|||
}
|
||||
|
||||
private void createAlgorithm() throws StatAlgoImporterServiceException {
|
||||
logger.debug("ProjectBuilder create algorithm");
|
||||
AlgorithmGenerator algorithmGenerator = new AlgorithmGenerator(project, serviceCredentials);
|
||||
algorithmJava = algorithmGenerator.createAlgorithm();
|
||||
|
||||
|
@ -551,8 +552,7 @@ public class ProjectBuilder {
|
|||
String pLink = filesStorage.getPublicLink(serviceCredentials.getUserName(), codeSource.getId());
|
||||
codeSource.setPublicLink(pLink);
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getLocalizedMessage());
|
||||
e.printStackTrace();
|
||||
logger.error(e.getLocalizedMessage(),e);
|
||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage(), e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue