posted 18 years ago
The war task is really designed to assemble a war file when you don't already have a directory that represents the contents of your war.
If you already have a directory that contains the contents of your exploded war file, with a WEB-INF and everything, the jar task is more appropriate.
If, however, you have classes in one place, and libraries in another, and a manifest somewhere else, and none of it is organized anything like a war file, the war task will put them all in the right place on-the-fly inside the war file without disrupting where they are in their original locations.