ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Manifest files
Date Tue, 27 Mar 2007 09:23:38 GMT
wolverine my wrote:
> Hi!
> 
> I created a JAR with the following Ant task:
> 
> <jar destfile="HelloWorld.jar" basedir="bin"
> manifest="src/main/resources/METAINF/HelloWorld.mf">
> </jar>
> 
> 
> The HelloWorld.jar contains two manifest files:
> ...
> META-INF/MANIFEST.MF
> HelloWorld.mf
> 
> Both manifest files are the same except that the MANIFEST.MF contains
> two extra lines:
> 
> Ant-Version: Apache Ant 1.7.0
> Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
> 
> 
> How to not auto-generate the extra lines in MANIFEST.MF?

Use <zip> instead of JAR

> 
> How to not include the HelloWorld.mf into the JAR?

Exclude it from the fileset of stuff you are <jar>ing up

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message