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 47457] New: indexjars does not list META-INF
Date Tue, 30 Jun 2009 11:53:45 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47457

           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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jason@plutext.org


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 http://forums.java.net/jive/thread.jspa?messageID=292293

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

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

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

-- 
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