You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dominique Devienne <DD...@lgc.com> on 2002/04/26 22:13:21 UTC

Bug in of ANT 1.4.1?

1) I'm creating a JAR with a manifest using <jar>
2) I'm processing the created JAR to gather some meta-info about it, saved
into a file.
3) I'm updating the JAR to add my new XML file in META-INF

Doing (3) with jar.exe works as expected:

	jar uf ${jarfile} -C ${xml-reg-dir} META-INF/MetaInfo.xml

i.e. adds the file to the JAR, and doesn't touch the manifest.

Doing (3) with <jar> hoses my manifest, replacing it by an empty/minimal
one:

    <jar jarfile="${jarfile}"
         update="true" 
         basedir="${xml-reg-dir}"
         includes="META-INF/MetaInfo.xml" />

I have to re-add the manifest attribute of the <jar update="true"> task.
So there's an easy enough work around, but isn't this a BUG????

Thanks to let me know, --DD

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bug in of ANT 1.4.1?

Posted by Darrell DeBoer <da...@apache.org>.
On Sat, 27 Apr 2002 06:13, Dominique Devienne wrote:
> 1) I'm creating a JAR with a manifest using <jar>
> 2) I'm processing the created JAR to gather some meta-info about it, saved
> into a file.
> 3) I'm updating the JAR to add my new XML file in META-INF
>
> Doing (3) with jar.exe works as expected:
>
> 	jar uf ${jarfile} -C ${xml-reg-dir} META-INF/MetaInfo.xml
>
> i.e. adds the file to the JAR, and doesn't touch the manifest.
>
> Doing (3) with <jar> hoses my manifest, replacing it by an empty/minimal
> one:
>
>     <jar jarfile="${jarfile}"
>          update="true"
>          basedir="${xml-reg-dir}"
>          includes="META-INF/MetaInfo.xml" />
>
> I have to re-add the manifest attribute of the <jar update="true"> task.
> So there's an easy enough work around, but isn't this a BUG????
>
> Thanks to let me know, --DD

Yep, this is a reported bug.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6521

-- 
ciao,
Daz ( another DD ;)

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>