ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44848] New: Service element of Jar task places provider file in wrong directory
Date Mon, 21 Apr 2008 18:12:40 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44848

           Summary: Service element of Jar task places provider file in
                    wrong directory
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: adam.hawthorne@gmail.com


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.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message