ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=54761

--- Comment #2 from Antoine Levy-Lambert <antoine@apache.org> ---
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
(\n).
The jar file specification
http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html#Service_Provider
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.

Mime
View raw message