Author: adietish
Date: 2011-07-04 15:15:40 -0400 (Mon, 04 Jul 2011)
New Revision: 32575
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/configuration/LocalStopLaunchConfigurator.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java
Log:
[JBIDE-9215] extracted shutdown jar location to IJBossRuntimeResourceConstants
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/configuration/LocalStopLaunchConfigurator.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/configuration/LocalStopLaunchConfigurator.java 2011-07-04
17:20:15 UTC (rev 32574)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/configuration/LocalStopLaunchConfigurator.java 2011-07-04
19:15:40 UTC (rev 32575)
@@ -66,7 +66,7 @@
protected List<String> getClasspath(JBossServer server, IJBossServerRuntime
runtime, List<String> currentClasspath)
throws CoreException {
ArrayList<IRuntimeClasspathEntry> classpath = new
ArrayList<IRuntimeClasspathEntry>();
- LaunchConfigUtils.addCPEntry(ServerUtil.getServerHomePath(server).toOSString(),
IJBossRuntimeResourceConstants.SHUTDOWN_JAR_LOC, classpath);
+ LaunchConfigUtils.addCPEntry(ServerUtil.getServerHomePath(server).toOSString(),
IJBossRuntimeResourceConstants.SHUTDOWN_JAR_LOC, classpath);
LaunchConfigUtils.addJREEntry(runtime.getVM(), classpath);
return LaunchConfigUtils.toStrings(classpath);
}
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java 2011-07-04
17:20:15 UTC (rev 32574)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/IJBossRuntimeResourceConstants.java 2011-07-04
19:15:40 UTC (rev 32575)
@@ -10,6 +10,10 @@
******************************************************************************/
package org.jboss.ide.eclipse.as.core.util;
+import java.io.File;
+
+import org.eclipse.core.runtime.Path;
+
public interface IJBossRuntimeResourceConstants {
/* Files and folders that are in various JBoss installations */
@@ -37,8 +41,10 @@
public static final String TWIDDLE_JAR = "twiddle.jar"; //$NON-NLS-1$
public static final String TWIDDLE_SH = "twiddle.sh"; //$NON-NLS-1$
public static final String SHUTDOWN_JAR = "shutdown.jar"; //$NON-NLS-1$
+ public static final String SHUTDOWN_JAR_LOC = BIN + File.separator + SHUTDOWN_JAR;
public static final String SHUTDOWN_SH = "shutdown.sh"; //$NON-NLS-1$
public static final String START_JAR = "run.jar"; //$NON-NLS-1$
+ public static final String START_JAR_LOC = BIN + Path.SEPARATOR + START_JAR;
public static final String TOOLS_JAR = "tools.jar"; //$NON-NLS-1$
public static final String JBOSS_MODULES_JAR = "jboss-modules.jar";
//$NON-NLS-1$
public static final String LOGGING_PROPERTIES = "logging.properties";
//$NON-NLS-1$
Show replies by date