From notifications-return-9786-apmail-ant-notifications-archive=ant.apache.org@ant.apache.org Thu Sep 03 18:15:48 2009 Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 81599 invoked from network); 3 Sep 2009 18:15:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Sep 2009 18:15:47 -0000 Received: (qmail 94751 invoked by uid 500); 3 Sep 2009 18:15:47 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 94701 invoked by uid 500); 3 Sep 2009 18:15:47 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 94692 invoked by uid 99); 3 Sep 2009 18:15:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 18:15:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2009 18:15:44 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id E9DCB234C1E6; Thu, 3 Sep 2009 11:15:23 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 44499] ManifestClassPath throws when a relative path would traverse the file system root X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: baba.buehler@zilliant.com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: 1.8.0 X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20090903181523.E9DCB234C1E6@brutus.apache.org> Date: Thu, 3 Sep 2009 11:15:23 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=44499 --- Comment #3 from baba.buehler@zilliant.com 2009-09-03 11:15:22 PDT --- I was able to get this working on Windows by changing the if at around line 79 to: if (!dirs[i].equals("" + File.separatorChar) && !dirs[i].matches("[a-zA-Z]:\\\\")) { dirs[i] = dirs[i] + File.separatorChar; } I also think the for loop at around line 102 should be (< vs <=): for (int j = 0; j < maxParentLevels && j < dirs.length; ++j) { The limitation here is that everything involved needs to be on one Windows drive; in my example above if the basedir were D:\temp this wouldn't work. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.