You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by wolverine my <wo...@gmail.com> on 2007/03/27 06:24:54 UTC
Manifest files
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?
How to not include the HelloWorld.mf into the JAR?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Manifest files
Posted by Steve Loughran <st...@apache.org>.
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