ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54761] Using jar command to create a jar containing two separate implementations of a service doesn't work
Date Sun, 31 Mar 2013 20:58:56 GMT

--- Comment #2 from Antoine Levy-Lambert <> ---
Hello John,

I disagree that the classes are concatenated in the service file.
The names of the 2 provider classes will be separated by a newline character
The jar file specification
says that "The file should contain a newline-separated list of unique concrete
provider-class names. "
So Ant is creating service provider files where classnames are separated by new
lines. New lines only are not visible in some Windows editors such as notepad.

If the service provider classes are only recognized when the class names are
separated by \r\n instead of just \n, that would mean that the service provider
paragraph in the jar file documentation is not specific enough.

You are receiving this mail because:
You are the assignee for the bug.

View raw message