Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE3C11630 for ; Wed, 20 Apr 2011 17:07:20 +0000 (UTC) Received: (qmail 24477 invoked by uid 500); 20 Apr 2011 17:07:20 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 24453 invoked by uid 500); 20 Apr 2011 17:07:20 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 24446 invoked by uid 99); 20 Apr 2011 17:07:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 17:07:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2011 17:07:19 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p3KH6xYf010910 for ; Wed, 20 Apr 2011 17:06:59 GMT Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id p3KH6wTU010909; Wed, 20 Apr 2011 13:06:58 -0400 (EDT) Date: Wed, 20 Apr 2011 13:06:58 -0400 (EDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 51096] New: jar task, nested element "service" not merged X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: nam3l3ssa@freemail.hu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=51096 Summary: jar task, nested element "service" not merged Product: Ant Version: 1.8.1 Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: Core tasks AssignedTo: notifications@ant.apache.org ReportedBy: nam3l3ssa@freemail.hu Using multiple services in different jar files, then using a single jar file, eg. Let there be a service "X", and let there be providers Alpha,Beta,Gamma. A.jar contains provider Alpha B.jar contains provider Beta C.jar provides provides Gamma, and includes A.jar and B.jar as zipfilesets. I would except it to be possible to create C.jar in a way that the service descriptor files are merged, but this does not seem to be the case. With either of the jar task's manifest affecting options, the result is separate files in the archive, with the same filename. >From what I have seen so far, only the "duplicate" property affects the resulting descrpitor files, but it does not have the option to merge, so it's of no use. When creating the jar file C.jar, there are (in case duplicate is not on "preserve") multiple entries of the same descriptor file, as the format allows this; however, the ServiceLoader only parses the first such file, causing failures in some of my applications. My current workaround is simply to extract the jar files, manually rearrange the service descriptors, then repackage them. Am I doing someting wrong? Is it possible to alter the build file so the service descriptors are merged? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.