Bug 44848 - Service element of Jar task places provider file in wrong directory
Summary: Service element of Jar task places provider file in wrong directory
Status: RESOLVED DUPLICATE of bug 41201
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.7.0
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-21 11:12 UTC by Adam Hawthorne
Modified: 2008-04-21 11:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Hawthorne 2008-04-21 11:12:40 UTC
A task defined as:

<jar destfile="foo.jar" files="${obj}/com/acme/**/*.class">
  <service type="java.nio.charset.spi.CharsetProvider" provider="com.acme.charset.PUACharset"/>
</jar>

places the file "java.nio.charset.spi.CharsetProvider" in the directory "META-INF/service" in the jar file, but the jar service provider framework specifies the directory as META-INF/services (note the 's' at the end).  See 
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Service%20Provider for the documentation there.
Comment 1 Peter Reilly 2008-04-21 11:36:49 UTC
Thanks for the report, this has already been fixed and will
be in ant 1.7.1


*** This bug has been marked as a duplicate of bug 41201 ***