Skip to content
Snippets Groups Projects
Commit eea63eb2 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- bugfix, closes...

- bugfix, closes #9
parent a78c02b2
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</pl:initParameters> </pl:initParameters>
<pl:description>SLUB Technical Metadata Extractor Plugin, using check_it_tiff to validate <pl:description>SLUB Technical Metadata Extractor Plugin, using check_it_tiff to validate
tiff-files</pl:description> tiff-files</pl:description>
<pl:version>1.104</pl:version> <pl:version>1.105</pl:version>
<pl:materialType>DIGITAL</pl:materialType> <pl:materialType>DIGITAL</pl:materialType>
<pl:module>Preservation</pl:module> <pl:module>Preservation</pl:module>
<pl:generalType>TASK</pl:generalType> <pl:generalType>TASK</pl:generalType>
......
...@@ -233,12 +233,13 @@ public class SLUBTechnicalMetadataExtractorCheckItTiffPlugin implements MDExtrac ...@@ -233,12 +233,13 @@ public class SLUBTechnicalMetadataExtractorCheckItTiffPlugin implements MDExtrac
for (Checkit_tiff_versions version : Checkit_tiff_versions.values()) { for (Checkit_tiff_versions version : Checkit_tiff_versions.values()) {
response.append(version.name()).append(" checkit_tiff:\n"); response.append(version.name()).append(" checkit_tiff:\n");
try { try {
String execstring = this.checkit_tiff_binary_path.get(version) + " -v"; String execstring = this.checkit_tiff_binary_path.get(version);
Process p = Runtime.getRuntime().exec(execstring); Process p = Runtime.getRuntime().exec(execstring);
p.waitFor(); p.waitFor();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream())); BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = reader.readLine(); String line = reader.readLine();
while (line != null) { while (line != null) {
if (line.trim().startsWith("call it with:")) { break; }
log.debug(line); log.debug(line);
response.append(line); response.append(line);
line = reader.readLine(); line = reader.readLine();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment