I am using "war" task to build a WAR file as below
While I am running this build.xml from one of the Eclipse Ganymede dynamic web project, I am getting the following error -
source\build.xml:64: No WEB-INF/web.xml file was added.
If this is your intent, set needxml='false'
I have another web project in the same workspace where the same build.xml file works without any problem.
I am using Ant version 1.7.1.
Any help is highly appreciated.
I have resolved the issue by adding a "mkdir" task inside the "target" mentioned in the earlier post.
The wrong error message is shown by Ant 1.7.1 when "dist" folder was not present in the directory structure. I created the directory manually and then the task ran fine.
Hence I added the "mkdir" in the target so that every time if directory is not present , ant will create the directory.