ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47457] New: indexjars does not list META-INF
Date Tue, 30 Jun 2009 11:53:45 GMT

           Summary: indexjars does not list META-INF
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks

Because the jar indexer skips the META-INF Entries, the classloader fails to
load resources from META-INF dirs (in my case, vfs-providers.xml)

See further

>From that link, there is an workaround, which looks like this:

<jar index="true" jarfile="main.jar" basedir="classes">
<attribute name="Class-Path" value="lib1.jar lib2.jar"/>
<indexjars path="${web.home}/applet/lib1.jar"/>
<indexjars path="${web.home}/applet/lib2.jar"/>
<zipfileset src="lib1.jar" excludes="*.LIST *.RSA. *.SF"
<zipfileset src="lib2.jar" excludes="*.LIST *.RSA. *.SF"

The trick is to transfer all special META-INF-data to the main.jar's META-INF/

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

View raw message