Skip to content

Commit 1e1b488

Browse files
committed
Fix parameter and cwltool bugs
1 parent a0781f0 commit 1e1b488

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/main/java/org/commonwl/view/cwl/CWLService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ private void setFormat(CWLElement inputOutput, String format) {
444444
rdfService.addToOntologies(ontModel);
445445
}
446446
String formatLabel = rdfService.getOntLabel(format);
447-
inputOutput.setType(inputOutput.getType() + " (" + formatLabel + " format)");
447+
inputOutput.setType(inputOutput.getType() + " (" + formatLabel + ")");
448448
} catch (RiotException ex) {
449449
inputOutput.setType(inputOutput.getType() + " (format)");
450450
}

src/main/java/org/commonwl/view/cwl/CWLTool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ private String runCwltoolOnWorkflow(String argument, String workflowUrl) throws
114114
// Wait for process to complete
115115
int exitCode = process.waitFor();
116116
if (exitCode == 0) {
117+
inputGobbler.join();
117118
return inputGobbler.getContent();
118119
} else {
119120
throw new CWLValidationException(errorGobbler.getContent());

src/main/java/org/commonwl/view/util/StreamGobbler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void run() {
4343
InputStreamReader isr = new InputStreamReader(is);
4444
BufferedReader br = new BufferedReader(isr);
4545
String line;
46-
while ( (line = br.readLine()) != null) {
46+
while ((line = br.readLine()) != null) {
4747
content += line + lineSeparator;
4848
}
4949
} catch (IOException ex) {

src/main/resources/templates/workflow.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ <h2>Outputs</h2>
260260
<tr th:each="output : ${workflow.outputs}">
261261
<td th:text="${output.key}">ID</td>
262262
<td>
263-
<a th:if="${output.value.format != null}" th:href="@{${output.value.format}}" th:text="${input.value.type}" target="_blank" rel="noopener">Type</a>
263+
<a th:if="${output.value.format != null}" th:href="@{${output.value.format}}" th:text="${output.value.type}" target="_blank" rel="noopener">Type</a>
264264
<span th:if="${output.value.format == null}" th:text="${output.value.type}"></span>
265265
</td>
266266
<td th:text="${output.value.label}">Label</td>

0 commit comments

Comments
 (0)