Bug 11039 - Jar-Tasks update option removes classes from War
Summary: Jar-Tasks update option removes classes from War
Status: RESOLVED DUPLICATE of bug 10755
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5
Hardware: Other other
: P3 critical (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-22 12:18 UTC by Holger von Thomsen
Modified: 2008-02-22 12:18 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger von Thomsen 2002-07-22 12:18:26 UTC
I have a prebuild WAR for BEA WLS.

When configuring the WAR for another Environment we need to update a XML-File 
in this WAR with a new version.

build.xml-snippet:

<jar jarfile="tmp/dared.war" update="true">
    <zipfileset dir="tmp/"
	prefix="WEB-INF/classes"
	includes="configuration.xml"/>
</jar>

After that the mentioned war only contains a Manifest.mf and the 
configuration.xml, but no longer the rest of "WEB-INF/classes"-directory 
structure, which has been there before this updating stuff.

This has been detected on Windows 2K as well as on SuSE 7.3-Intel and a SuSE 
for IBM zSeries.
Comment 1 Holger von Thomsen 2002-07-22 15:00:49 UTC
Addition to original description:

When using war-task for updating a war with update="true" set, Ant tells me 
that webxml is a required attribute where the manual of Ant´s War-Task says 
that webxml is not required when update="true" is set.

Seems that Jar, War and similar Tasks seems to have some serious problems when 
trying to update existing archives.
Comment 2 Stefan Bodewig 2002-07-24 12:03:26 UTC
I assume you are creating the war archive just before that snippet?

*** This bug has been marked as a duplicate of 10755 ***
Comment 3 Holger von Thomsen 2002-07-24 12:13:15 UTC
Task has been updated to use War instead of Jar.

Original Problem has been found in build.xml in a missing copy-task, which 
copies the war to the temp-dir.

Build.Xml has been re-structured meanwhile so that this task ins´t needed any 
longer.

Sorry!