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 2007/08/14 16:25:17 UTC
DO NOT REPLY [Bug 43121] New: - War task fails with "No WEB-INF/web.xml file was added" when called a second time
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=43121>.
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=43121
Summary: War task fails with "No WEB-INF/web.xml file was added"
when called a second time
Product: Ant
Version: 1.7.0
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: petertje@luminis.nl
I use the war task with just a fileset to define the content; the web.xml is in
this fileset (in the WEB-INF dir of course); this is accepted behaviour
according to the docs (the webxml attribute is optional).
This works fine when building the war for the first time. However, when i rerun
this command and the war file doesn't need to be updated (no files changed), the
build fails with the following warning:
web/build.xml:37: No WEB-INF/web.xml file was added.
If this is your intent, set needxml='false'
The work around is to set needxmlfile to false, but that is of course not what i
intended.
Btw. note that the error message incorrectly refers to the attribute "needxml":
it should be needxmlfile.
--
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
DO NOT REPLY [Bug 43121] - War task fails with "No WEB-INF/web.xml file was added" when called a second time
Posted by bu...@apache.org.
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=43121>.
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=43121
peterreilly@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.7.1
------- Additional Comments From peterreilly@apache.org 2007-08-20 09:36 -------
Yep, this is inconsistent behaviour.
I have committed a change so that if the war
task does not update the war file, it will
not fail.
Thanks for the report.
--
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