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 7683] New: - War task adds files to web-inf directory, instead of WEB-INF directory
Date Tue, 02 Apr 2002 09:32: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=7683>.
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=7683

War task adds files to web-inf directory, instead of WEB-INF directory

           Summary: War task adds files to web-inf directory, instead of
                    WEB-INF directory
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: tim_d_wilson@bigfoot.com
                CC: tim_d_wilson@bigfoot.com


The attached zip file, ant-test.zip, shows that running ant against the 
build.xml file results in a test.jar file that has files in a web-inf 
directory, instead of the WEB-INF directory.  The web.xml file and all files 
added to web-inf (one-level deep in the jar file) using the webinf nested 
element exhibit this behavior.  I looked at the source code and it looks 
right... the code adds the WEB-INF path to a File object and adds it to a 
ZipFileSet.  May be a platform specific issue.  Adding files using the webinf 
nested element that are > one level deep in the jar file fixes the problem.

The issue is that JBoss 2.4.4 rejects the war file if the web.xml files is not 
found in WEB-INF (case sensitive).  So the war utility is unusable for this 
app server and the jar core task will be have to be used as a workaround.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message