Author: adietish
Date: 2011-07-11 08:05:48 -0400 (Mon, 11 Jul 2011)
New Revision: 32810
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java
Log:
[JBIDE-9215] added #getModulesPath()
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java 2011-07-11
11:58:39 UTC (rev 32809)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/LaunchConfigUtils.java 2011-07-11
12:05:48 UTC (rev 32810)
@@ -127,9 +127,12 @@
}
public static IRuntimeClasspathEntry getModulesClasspathEntry(IServer server) throws
CoreException {
+ return JavaRuntime.newArchiveRuntimeClasspathEntry(getModulesPath(server));
+ }
+
+ public static IPath getModulesPath(IServer server) throws CoreException {
IPath runtimeLocation = server.getRuntime().getLocation();
- IPath modulesLocation =
runtimeLocation.append(IJBossRuntimeResourceConstants.JBOSS7_MODULES_JAR);
- return JavaRuntime.newArchiveRuntimeClasspathEntry(modulesLocation);
+ return runtimeLocation.append(IJBossRuntimeResourceConstants.JBOSS7_MODULES_JAR);
}
public static void addDirectory(String serverHome, List<IRuntimeClasspathEntry>
classpath, String dirName) {
Show replies by date