Return-Path: Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Delivered-To: mailing list dev@ant.apache.org Received: (qmail 62009 invoked from network); 12 Mar 2003 22:26:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 12 Mar 2003 22:26:58 -0000 Received: (qmail 973 invoked by uid 50); 12 Mar 2003 22:28:44 -0000 Date: 12 Mar 2003 22:28:44 -0000 Message-ID: <20030312222844.972.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: dev@ant.apache.org Cc: Subject: DO NOT REPLY [Bug 17871] - war task's webxml attrib no longer is able to use value with a starting backslash for the path in Windows X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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=17871 war task's webxml attrib no longer is able to use value with a starting backslash for the path in Windows ------- Additional Comments From levylambert@tiscali-dsl.de 2003-03-12 22:28 ------- I can confirm the existence of this bug. I have done a test of this bug under Win2000 and JDK 1.4.1_01-b01 I think I also have found the origin of this bug : 1)War.java#zipFile(File file, ZipOutputStream zOut, String vPath, int mode) contains a line saying ... !deploymentDescriptor.equals(file) ... in test3 deploymentDescriptor = \Xxx\Yyy\Zzz.xml file = D:\Xxx\Yyy\Zzz.xml therefore War.java#zipFile refuses to include \Xxx\Yyy\Zzz.xml into the war file 2) AbstractFileSet.java does this public void setFile(File file) { ... setDir(fileUtils.getParentFile(file)); ... } getParentFile returns D:\Xxx\Yyy\ always, independently of whether file contains the drive specification or not