You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2012/08/19 18:08:21 UTC
svn commit: r1374783 -
/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyAttachementManager.java
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) {