ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16915] New: - WAR task ignores "lib" nested element when placed after "classes"
Date Sun, 09 Feb 2003 17:00:08 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: Ascander@cantv.net


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>

Mime
View raw message