Hi Bertrand

You could implement a FilterOutputStream that buffers the lines and on
close sorts them, writes them to the delegate and flushes the
delegate.

Then you could overwrite Manifest.write to decorate the provided OutputStream.

Not really much different from your initial suggestion, but it avoids
rewriting the Manifest.write logic.

Regards
Julian

On Fri, Apr 28, 2017 at 10:57 AM, Bertrand Delacretaz
<[email protected]> wrote:
> Hi Robert,
>
> On Fri, Apr 28, 2017 at 10:04 AM, Robert Munteanu <[email protected]> wrote:
>> ...My hunch is that this ordering change happens because of it being ran
>> with different Java versions...
>
> Yeah that's what I suspect as well so an obvious workaround is
> sticking with a single Java version for builds.
>
> -Bertrand

Reply via email to