DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16915>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16915 WAR task ignores "lib" nested element when placed after "classes" Summary: WAR task ignores "lib" nested element when placed after "classes" Product: Ant Version: 1.5.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Using the following war target, I found that my lib directory was not loaded in the .war file <target name="war" depends="compile" description="Creates war file for project" > <war warfile="output/myApp.war" webxml="web/WEB-INF/web.xml" > <fileset dir="web/" > <include name="**/*.jsp"/> <include name="**/*.gif"/> </fileset> <classes dir="web/WEB-INF/classes"> <include name="**/*.class"/> </classes> <lib dir="web/WEB-INF/lib"> <include name="**/*.jar"/> </lib> </war> </target> After several ours I noticed that the order of nested attributes was different fron the one in the example of the ant documentation, so I changed the order and, to my surprise, it worked fine. (follows the working version). <target name="war" depends="compile" description="Creates war file for project" > <war warfile="output/myApp.war" webxml="web/WEB-INF/web.xml" > <fileset dir="web/" > <include name="**/*.jsp"/> <include name="**/*.gif"/> </fileset> <lib dir="web/WEB-INF/lib"> <include name="**/*.jar"/> </lib> <classes dir="web/WEB-INF/classes"> <include name="**/*.class"/> </classes> </war> </target>