You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/11/29 09:52:54 UTC

DO NOT REPLY [Bug 30751] - Jar with both attributes update="true" and filesetmanifest="true" is broken

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30751>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30751





------- Additional Comments From markus.schneider@med.ge.com  2004-11-29 09:52 -------
I have the same problem. Here is a simple testcase:

<target name="jarUpdateBug" 
        description="Testcase for jar update=true and filesetmanifest=[merge, 
mergewithoutmain] does not preserve the original content.">
  <property name="dest" value="c:/temp/jarUpdateBug"/>
  <delete dir="${dest}" failonerror="false"/>
  <mkdir dir="${dest}"/>
  <echo file="${dest}/jarUpdateBugFile1.txt" message="Test File 1"/>
  <echo file="${dest}/jarUpdateBugFile2.txt" message="Test File 2"/>
  <!-- This works not: 
   For filesetmanifest=[merge, mergewithoutmain] only the last file is 
   contained in the jarUpdateBug.jar.
  -->
  <jar jarfile="${dest}/jarUpdateBug.jar" basedir="${dest}"
        update="false" 
        includes="**/*1.txt"
        filesetmanifest="merge"/>
  <jar jarfile="${dest}/jarUpdateBug.jar" basedir="${dest}"
        update="true" 
        includes="**/*2.txt"
        filesetmanifest="merge"/>
  <!-- This works (filesetmanifest="skip"). 
       Both files contained in jarUpdateOk.jar
  -->
  <jar jarfile="${dest}/jarUpdateOk.jar" basedir="${dest}"
        update="false" 
        filesetmanifest="skip"
        includes="**/*1.txt"/>
  <jar jarfile="${dest}/jarUpdateOk.jar" basedir="${dest}"
        update="true"
        filesetmanifest="skip"
        includes="**/*2.txt"/>
</target>

Btw. Also happens with update="true" and filesetmanifest="mergewithoutmain".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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