ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <>
Subject Re: Accessing the manifest within a jar file
Date Tue, 31 Oct 2006 03:19:28 GMT
Hello Michael,

this is an interesting question.

I would write my own custom Ant task . You can use java.util.jar.JarFile
and java.util.jar.Manifest to access whathever information you want.

Actually, I am interested by the same sort of topic, for instance to
collect Vendor/Version/Name information from a set of jar files and
generate a report from this.



Nau, Michael wrote:
> Anyone know of an easy way to access the manifest file within a jar
> file? I realize I can extract the manifest first using the <unjar> task,
> but I was hoping for a way to directly access the manifest file.
> I need to check for some specific info within the manifest of several
> jar files from my ant script.
> Thanks,
> -Mike

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message