Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8B43A9F6D for ; Sun, 19 Aug 2012 16:09:05 +0000 (UTC) Received: (qmail 29271 invoked by uid 500); 19 Aug 2012 16:09:05 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 29233 invoked by uid 500); 19 Aug 2012 16:09:05 -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 29226 invoked by uid 99); 19 Aug 2012 16:09:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Aug 2012 16:09:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Aug 2012 16:09:04 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6783723888FD for ; Sun, 19 Aug 2012 16:08:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1374783 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java Date: Sun, 19 Aug 2012 16:08:21 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120819160821.6783723888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hibou Date: Sun Aug 19 16:08:20 2012 New Revision: 1374783 URL: http://svn.apache.org/viewvc?rev=1374783&view=rev Log: Better check of not setup source attachement Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java?rev=1374783&r1=1374782&r2=1374783&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java (original) +++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java Sun Aug 19 16:08:20 2012 @@ -137,7 +137,7 @@ public class IvyAttachementManager { public IPath getSourceAttachment(IPath path) { String srcPath = prop.getProperty(path.toPortableString() + SRC_SUFFIX); - if (!"".equals(srcPath)) { + if (srcPath != null && srcPath.length() != 0) { return new Path(srcPath); } return null; @@ -145,7 +145,7 @@ public class IvyAttachementManager { public IPath getSourceAttachmentRoot(IPath path) { String srcPath = prop.getProperty(path.toPortableString() + SRCROOT_SUFFIX); - if (!"".equals(srcPath)) { + if (srcPath != null && srcPath.length() != 0) { return new Path(srcPath); } return null; @@ -153,7 +153,7 @@ public class IvyAttachementManager { public URL getDocAttachment(IPath path) { String srcPath = prop.getProperty(path.toPortableString() + DOC_SUFFIX); - if (!"".equals(srcPath)) { + if (srcPath != null && srcPath.length() != 0) { try { return new URL(srcPath); } catch (MalformedURLException e) {