Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 92397 invoked from network); 16 Apr 2010 20:05:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Apr 2010 20:05:37 -0000 Received: (qmail 35836 invoked by uid 500); 16 Apr 2010 20:05:36 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 35796 invoked by uid 500); 16 Apr 2010 20:05:36 -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 35789 invoked by uid 99); 16 Apr 2010 20:05:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 20:05:36 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Apr 2010 20:05:34 +0000 Received: from thor.apache.org (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3GK5Dsx007037 for ; Fri, 16 Apr 2010 16:05:13 -0400 (EDT) Received: (from daemon@localhost) by thor.apache.org (8.13.8+Sun/8.13.8/Submit) id o3GK5CJS007036; Fri, 16 Apr 2010 16:05:12 -0400 (EDT) Date: Fri, 16 Apr 2010 16:05:12 -0400 (EDT) Message-Id: <201004162005.o3GK5CJS007036@thor.apache.org> From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 49137] Ant Symlink task generates Null Pointer exception with stack trace when trying to delete symlink X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Optional Tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bodewig@apache.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: 1.8.1 X-Bugzilla-Changed-Fields: Status Resolution Target Milestone 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 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=49137 Stefan Bodewig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |1.8.1 --- Comment #1 from Stefan Bodewig 2010-04-16 16:05:09 EDT --- Apparently, if you create a File instance using new File("name") and ./name is a symbolic link then this file's getParent() returns null. If you create new File(new File("."), "name") you get the current directory as parent. Learn something new every day. As a workaround for your case, use link="./Templates" and the delete succeeds. Fixed in svn revision 935064 Realized that link is not resolved against basedir but against the current working directory and didn't dare to change that for backwards compatibility - will document that. Many thanks for the testcase. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.