When JSign is configured to attach existing signatures, the attach process doesn't close the signed file. This causes problems when using the Ant task on Windows when trying to use the newly signed file.
Adding
if (signable instanceof Closeable) {
((Closeable) signable).close();
}
at line 509 and line 543 of SignerHelper appeared to fix the issue but I suspect that fix is a hack that could be improved.
When JSign is configured to attach existing signatures, the attach process doesn't close the signed file. This causes problems when using the Ant task on Windows when trying to use the newly signed file.
Adding
at line 509 and line 543 of SignerHelper appeared to fix the issue but I suspect that fix is a hack that could be improved.