From 6ad4d7c12c9aecf7ba742dc644253d2993bedfd7 Mon Sep 17 00:00:00 2001 From: Jose Date: Thu, 13 Dec 2012 15:08:58 +0100 Subject: ICE-5071 - Eclipse plug-in should detect an RPM installation --- .../zeroc/slice2javaplugin/internal/Configuration.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/Configuration.java') diff --git a/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/Configuration.java b/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/Configuration.java index c656d2346af..966549d8d41 100644 --- a/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/Configuration.java +++ b/eclipse/java/Slice2javaPlugin/src/com/zeroc/slice2javaplugin/internal/Configuration.java @@ -812,7 +812,7 @@ public class Configuration return getTranslatorForHome(dir) != null; } - public String getJarDir() + public static String getJarDir() { String iceHome = getIceHome(); String os = System.getProperty("os.name"); @@ -939,9 +939,9 @@ public class Configuration } else { - cpEntry = JavaCore.newVariableEntry(new Path("ICE_HOME/lib/Ice.jar"), - new Path("ICE_HOME/lib/Ice.jar"), - new Path("ICE_HOME/lib/"), + cpEntry = JavaCore.newVariableEntry(new Path("ICE_JAR_HOME/Ice.jar"), + new Path("ICE_JAR_HOME/Ice.jar"), + new Path("ICE_JAR_HOME/lib/"), true); } @@ -976,9 +976,9 @@ public class Configuration private void addLibrary(IJavaProject project, String jar) throws CoreException { - IClasspathEntry cpEntry = JavaCore.newVariableEntry(new Path("ICE_HOME/lib/" + jar), - new Path("ICE_HOME/lib/" + jar), - new Path("ICE_HOME/lib/"), + IClasspathEntry cpEntry = JavaCore.newVariableEntry(new Path("ICE_JAR_HOME/" + jar), + new Path("ICE_JAR_HOME/" + jar), + new Path("ICE_JAR_HOME/"), true); IClasspathEntry[] entries = project.getRawClasspath(); @@ -1040,7 +1040,7 @@ public class Configuration public void removeLibrary(IJavaProject project, String lib) throws CoreException { - IClasspathEntry cpEntry = JavaCore.newVariableEntry(new Path("ICE_HOME/lib/" + lib), null, null); + IClasspathEntry cpEntry = JavaCore.newVariableEntry(new Path("ICE_JAR_HOME/lib/" + lib), null, null); IClasspathEntry[] entries = project.getRawClasspath(); -- cgit v1.2.3