Bug 57243 - Deterministic (reproducible) output (without total time)
Summary: Deterministic (reproducible) output (without total time)
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core (show other bugs)
Version: 1.9.4
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 07:02 UTC by Ville Oikarinen
Modified: 2020-01-12 09:56 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ville Oikarinen 2014-11-21 07:02:29 UTC
I'm generating documentation from output of code that, among other things, executes ant.

I want the generated document to be fully reproducible (deterministic) i.e. given the same input files the output document must be exactly the same.

But I cannot achieve this without filtering ant output, because ant prints "Total time" in the end, and the time can be different between runs.

I have tried the "-S" flag, but that also suppresses output from java programs executed by ant using the <java> element. So that does not help.

Using a custom logger is not an easy enough solution for my needs.

So I propose one or several of the following:
- option "--nototaltime" that just suppresses the Total time line, regardless of other flags
- option "--deterministic-output" that tells the intention more clearly, in case there are other possible nondeterministic output cases

Yet another option is to make another flag like "-S" that suppresses all _irrelevant_ output. Now it's printing all relevant output produced directly by ant, but this new option would also print all relevant output (actually, all output) by code executed with <java> and <exec>
Comment 1 Ville Oikarinen 2014-11-21 07:04:19 UTC
Oh, yet another option: instead of new flags just add a new logger implementation to the ant distribution. Or several of them.
Comment 2 Ville Oikarinen 2020-01-11 18:39:40 UTC
Please? Can you at least reply? I might even be willing to implement this myself, if I have reason to believe the feature will be accepted.
Comment 3 Stefan Bodewig 2020-01-12 09:56:53 UTC
I don't think we would add a new flag, we might think about adding a different logger implementation. But as you are the first person to ever ask for this feature, I wonder how widespread demand for it is.

In either case you can create this logger and publish it independent of the Ant distribution - and we could link to it.