ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1091052 - /ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java
Date Mon, 11 Apr 2011 12:37:43 GMT
Author: hibou
Date: Mon Apr 11 12:37:43 2011
New Revision: 1091052

URL: http://svn.apache.org/viewvc?rev=1091052&view=rev
Log:
If the classpath container is configured for some project, do not trust the project name serialized
as it may have been renamed

Modified:
    ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java

Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java
URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java?rev=1091052&r1=1091051&r2=1091052&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java
(original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/cpcontainer/IvyClasspathContainerConfAdapter.java
Mon Apr 11 12:37:43 2011
@@ -126,7 +126,7 @@ public final class IvyClasspathContainer
                 throw new RuntimeException(UTF8_ERROR, e);
             }
             if (parameter[0].equals("project")) {
-                if (value.trim().length() != 0) {
+                if (conf.getJavaProject() == null && value.trim().length() != 0)
{
                     IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
                     IProject project = root.getProject(value.trim());
                     IJavaProject javaProject = JavaCore.create(project);



Mime
View raw message