This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Warning Message When I Ran My ANT build.xml File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Warning Message When I Ran My ANT build.xml File" Watch "Warning Message When I Ran My ANT build.xml File" New topic
Author

Warning Message When I Ran My ANT build.xml File

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I got the warning shown below when I ran my ANT build.xml file. Why did I get the warning like this one? And How do I fix it (I am also showing the code of my build.xml file)?

[war] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)


[ July 18, 2005: Message edited by: Daniel Gee ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60783
    
  65

In the war task you specify the deployment descriptor (web.xml) with an attribute. Also including it as part of the fileset generates the warning. To prevent the warning, exclude the web.xml from the fileset.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
jQuery in Action, 2nd edition
 
subject: Warning Message When I Ran My ANT build.xml File
 
Similar Threads
use Ant in Eclipse 3.1
ant exception
Which IDE support JSP 2.0
I can't build???
Ant building error