Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2014-04-28 05:50:11 -0400
committerFred Bricon2014-04-28 06:02:09 -0400
commitb501a1608205e94edc74a7aea44c78717b31047a (patch)
treea5cee88ef47cee9710183e6824ef8824f7ade09d
parent3b9e42f946dc2b5560a86f3895492938e1e3fcc7 (diff)
downloadm2e-core-b501a1608205e94edc74a7aea44c78717b31047a.tar.gz
m2e-core-b501a1608205e94edc74a7aea44c78717b31047a.tar.xz
m2e-core-b501a1608205e94edc74a7aea44c78717b31047a.zip
394042 : preserve existing Variable Classpath Entries
Change-Id: Iff7a912c341dcee2f7fe9527898f4877a6349778 Signed-off-by: Fred Bricon <fbricon@gmail.com>
-rw-r--r--org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ClasspathEntryDescriptor.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ClasspathEntryDescriptor.java b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ClasspathEntryDescriptor.java
index 77dbb569..eb7ee8e9 100644
--- a/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ClasspathEntryDescriptor.java
+++ b/org.eclipse.m2e.jdt/src/org/eclipse/m2e/jdt/internal/ClasspathEntryDescriptor.java
@@ -130,6 +130,14 @@ public class ClasspathEntryDescriptor implements IClasspathEntryDescriptor {
attributesArray, //
exported);
break;
+ case IClasspathEntry.CPE_VARIABLE:
+ entry = JavaCore.newVariableEntry(path, //
+ sourceAttachmentPath, //
+ sourceAttachmentRootPath, //
+ accessRulesArray, //
+ attributesArray, //
+ exported);
+ break;
default:
throw new IllegalArgumentException("Unsupported IClasspathEntry kind=" + entryKind); //$NON-NLS-1$
}

Back to the top