Closed daxenberger closed 1 year ago
Reported by oliver.ferschke
on 2011-06-08 12:32:17
Reported by oliver.ferschke
on 2011-10-07 10:55:04
Started
Reported by oliver.ferschke
on 2011-10-07 10:55:17
Accepted
@daxenberger Has this issue ever been resolved? What is the current state for this feature request?
It could be quite a useful enhancement, saving users from the experience of a full disk.
@mawiesne see my comments in #173
@daxenberger I agree: .bin files are not of much interest to most (>90%) users. Please specify an optional parameter in the original issue (#24) as a comment. I could then rework the PR to reflect this idea, so users can decide whether to keep the files or not.
How about sth like a boolean DO_NOT_DELETE_TEMP_FILES in JWPLDataMachine, set to false by default?
What about the command-line parameter "--keep-bin-files <true/false>" ?
What about the command-line parameter "--keep-bin-files <true/false>" ?
Fine. I suggest to make the command-line parameter optional - using "keep-bin-files" to enable it.
@reckart Any additions? Otherwise, I'll proceed with these changes as suggested above.
I don't know how this code is used, but usually having static flags somewhere like a DO_NOT_DELETE_TEMP_FILES
is not a good idea. I'd still recommend allowing local control over this behavior. But that's just my 10 cents.
I will quickly summarize our options here:
-keep-bin-files
is specified,
proposed by @daxenberger / @rzo1 ..bin
files by default unless
-wipe-bin-files
is specified, proposed by @reckart. Gentlemen, please cast your vote (+1, 0, -1) for one of the aforementioned strategies. -1 in case you want to veto providing an explanation on the "why".
I will vote, once you have commented and implement the strategy which receives a majority of the votes.
@tgalery Maybe you want to participate in the vote on this implementation strategy as well? Asking you, just in case..
Hi guys , I'd love to, but I'm on holidays at the moment. Should be able to catch up and see how I can contribute. Hope that's ok !
On Mon, 9 Jul 2018, 21:26 Martin Wiesner, notifications@github.com wrote:
@tgalery https://github.com/tgalery Maybe you want to participate in the vote on this implementation strategy as well? Asking you, just in case..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dkpro/dkpro-jwpl/issues/24#issuecomment-403575333, or mute the thread https://github.com/notifications/unsubscribe-auth/ABwssLOEtvkKgSxHgcYTXc8cN7t-zjbQks5uE6BfgaJpZM4VGYUd .
I have given my advice, but for me it's really up to you how you prefer it. So I'm +0 for all options :)
Both option 2 and 3 are fine with me, with a slight preference for 2.
Local control strategy with removal option, i.e. keep all .bin files by default unless -wipe-bin-files is specified, proposed by @reckart.
Mind my comment was about the API of the dumper at the Java level, not at the command-line level. I believe it should be possible (if desired) to call a "cleanup" method from the code that handles the command-line invocation (e.g. some main
method). I didn't comment on how that could be exposed to the CLI user (i.e. whether to use a delete-by-default or a keep-by-default strategy). IMHO the CLI-level design and Java API level design can very well make different decisions on this matter. That's just for clarification. I'm still +0 for everything ;)
@reckart Ack, thanks for the clarification. Your initial comment wasn't clear enough then: "local control" interpreted as leave it to the caller/user of DataMachine
(from the CLI perspective).
@daxenberger In case we go for option 2 / 3. I will reflect the last comment by @reckart on API level.
I vote for a combined approach of (2) and (3).
Implementing "cleanUp()" on API level and then using ---keep-bin-files
to prevent cleanup in CLI usage.
Implementing "cleanUp()" on API level and then using ---keep-bin-files to prevent cleanup in CLI usage.
Sounds good!
Decided it is, as nobody objected the proposal by @rzo1. I will implement a soft-removal strategy (Option 2 for CLI perspective) then, providing cleanUp
method on API level.
Originally reported on Google Code with ID 26
Reported by
oliver.ferschke
on 2011-06-08 12:32:03