Skip to content

Commit 4088110

Browse files
committed
Delete temporary files after validation
1 parent d86999a commit 4088110

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

datastore/src/main/java/org/ncgr/datastore/validation/AnnotationCollectionValidator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ public void validate() {
152152
}
153153
} catch (Exception ex) {
154154
printError(ex.getMessage());
155+
} finally {
156+
tempfile.delete();
155157
}
156158

157159
// protein.faa.gz (required) and protein_primary.faa.gz (optional)

datastore/src/main/java/org/ncgr/datastore/validation/SyntenyCollectionValidator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ public void validate() {
105105
}
106106
} catch (Exception ex) {
107107
printError(ex.getMessage());
108+
} finally {
109+
tempfile.delete();
108110
}
109111
}
110112
}

0 commit comments

Comments
 (0)